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

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


Author: sartak
Date: Tue Mar  3 18:43:45 2009
New Revision: 6552

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

Log:
 r80836 at onn:  sartak | 2009-03-03 18:43:37 -0500
 We need to explicitly grab the current user


Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Tue Mar  3 18:43:45 2009
@@ -135,7 +135,10 @@
 
     # $date->current_user(undef) will not remove the current user, but it will
     # calculate who the current user is for setting the time zone
-    shift if @_ == 1 && !defined($_[0]);
+    if (@_ == 1 && !defined($_[0])) {
+        shift;
+        $self->_get_current_user;
+    }
 
     my $ret = $self->SUPER::current_user(@_);
     $self->set_current_user_timezone();


More information about the Jifty-commit mailing list