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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Dec 3 01:35:03 EST 2006


Author: jesse
Date: Sun Dec  3 01:35:01 2006
New Revision: 2278

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

Log:
 r45710 at pinglin:  jesse | 2006-12-03 01:30:55 -0500
 * Better tell Date::Manip what the timezone. The previous way did not actually work


Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Sun Dec  3 01:35:01 2006
@@ -79,6 +79,9 @@
         if($string =~ /^\s* (?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$/xi) {
             $string = "next $string";
         }
+        
+        # Why are we parsing this as GMT? This feels really wrong.  It will get the wrong answer
+        # if the current user is in another tz.
         Date::Manip::Date_Init("TZ=GMT");
         $now = Date::Manip::UnixDate( $string, "%o" );
     }


More information about the Jifty-commit mailing list