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

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 3 17:49:30 EST 2009


Author: sartak
Date: Tue Mar  3 17:49:30 2009
New Revision: 6549

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

Log:
 r80831 at onn:  sartak | 2009-03-03 17:49:24 -0500
 Default to UTC so DateTime doesn't have to do as many pointless conversions


Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Tue Mar  3 17:49:30 2009
@@ -182,7 +182,7 @@
 
 sub set_current_user_timezone {
     my $self    = shift;
-    my $default = shift || 'GMT';
+    my $default = shift || 'UTC';
     my $tz = $self->current_user_has_timezone || $default;
 
     $self->set_time_zone($tz);
@@ -235,7 +235,7 @@
     return undef unless $epoch;
 
     # Build a DateTime object from the Date::Manip value and setup the TZ
-    my $self = $class->from_epoch( epoch => $epoch, time_zone => 'GMT' );
+    my $self = $class->from_epoch( epoch => $epoch, time_zone => 'UTC' );
     if (my $tz = $self->current_user_has_timezone) {
         if ($self->hour || $self->minute || $self->second) {
             $self->set_time_zone( $tz );


More information about the Jifty-commit mailing list