[Jifty-commit] r7522 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Wed Oct 7 15:30:21 EDT 2009

Author: sartak
Date: Wed Oct  7 15:30:21 2009
New Revision: 7522


Allow this underscore in set_current_user_time_zone

Modified: jifty/trunk/lib/Jifty/DateTime.pm
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Wed Oct  7 15:30:21 2009
@@ -227,10 +227,16 @@
 =head2 set_current_user_timezone [DEFAULT_TZ]
+=head2 set_current_user_time_zone [DEFAULT_TZ]
 Set this Jifty::DateTime's timezone to the current user's timezone. If that's
 not available, then use the passed in DEFAULT_TZ (or GMT if not passed in).
 Returns the Jifty::DateTime object itself.
+If your subclass changes this method, please override
+C<set_current_user_timezone> not C<set_current_user_time_zone>, since the
+latter is merely an alias for the former.
 sub set_current_user_timezone {
@@ -242,6 +248,8 @@
     return $self;
+sub set_current_user_time_zone { shift->set_current_user_timezone(@_) }
 =head2 new_from_string STRING[, ARGS]
 Take some user defined string like "tomorrow" and turn it into a

More information about the Jifty-commit mailing list