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

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 3 23:06:31 EST 2009


Author: sartak
Date: Tue Mar  3 23:06:30 2009
New Revision: 6557

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

Log:
 r80887 at onn:  sartak | 2009-03-03 23:06:22 -0500
 DateTime doesn't like time_zone => undef


Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Tue Mar  3 23:06:30 2009
@@ -110,7 +110,7 @@
     my $class = shift;
     my %args  = (
         current_user => undef,
-        time_zone    => undef,
+        #time_zone => undef, # DateTime doesn't like undef time_zone
         @_,
     );
 
@@ -135,7 +135,11 @@
 
 sub from_epoch {
     my $class = shift;
-    my %args  = @_;
+    my %args  = (
+        current_user => undef,
+        #time_zone => undef, # DateTime doesn't like undef time_zone
+        @_,
+    );
 
     my $current_user = delete $args{current_user};
     my $self = $class->SUPER::from_epoch(%args);


More information about the Jifty-commit mailing list