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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Nov 28 13:41:26 EST 2006


Author: falcone
Date: Tue Nov 28 13:41:20 2006
New Revision: 2211

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

Log:
 r14784 at ketch:  falcone | 2006-11-28 13:39:28 -0500
 * DateManip can get confused if someone else calls Date_Init earlier in the process
   Tell it "no, really, GMT please"


Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Tue Nov 28 13:41:20 2006
@@ -79,7 +79,7 @@
         if($string =~ /^\s* (?:monday|tuesday|wednesday|thursday|friday|saturday|sunday)$/xi) {
             $string = "next $string";
         }
-        local $ENV{'TZ'} = "GMT";
+        Date::Manip::Date_Init("TZ=GMT");
         $now = Date::Manip::UnixDate( $string, "%o" );
     }
     return undef unless $now;


More information about the Jifty-commit mailing list