[Jifty-commit] r6554 - in jifty/trunk: lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 3 18:59:35 EST 2009


Author: sartak
Date: Tue Mar  3 18:59:35 2009
New Revision: 6554

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/DateTime.pm

Log:
 r80845 at onn:  sartak | 2009-03-03 18:59:30 -0500
 If the user passed in a time zone, actually use it instead of converting to Floating for dates


Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Tue Mar  3 18:59:35 2009
@@ -66,9 +66,11 @@
                && $self->time_zone->name eq 'floating';
 
     $self->current_user($current_user);
-    $self->set_time_zone($args{time_zone}) if $args{time_zone};
 
-    if ($is_date) {
+    if ($args{time_zone}) {
+        $self->set_time_zone($args{time_zone});
+    }
+    elsif ($is_date) {
         $self->set_hour(0);
         $self->set_minute(0);
         $self->set_second(0);


More information about the Jifty-commit mailing list