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

Jifty commits jifty-commit at lists.jifty.org
Mon Mar 2 16:37:36 EST 2009


Author: sartak
Date: Mon Mar  2 16:37:35 2009
New Revision: 6530

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

Log:
 r80747 at onn:  sartak | 2009-03-02 16:36:35 -0500
 Handle current_user in Jifty::DateTime->new


Modified: jifty/trunk/lib/Jifty/DateTime.pm
==============================================================================
--- jifty/trunk/lib/Jifty/DateTime.pm	(original)
+++ jifty/trunk/lib/Jifty/DateTime.pm	Mon Mar  2 16:37:35 2009
@@ -59,9 +59,12 @@
     my %args  = (@_);
 
     my $replace_tz = delete $args{_replace_time_zone};
+    my $current_user = delete $args{current_user};
 
     my $self  = $class->SUPER::new(%args);
 
+    $self->current_user($current_user) if $current_user;
+
     # XXX What if they really mean midnight offset by time zone?
 
     #     this behavior is (sadly!) consistent with


More information about the Jifty-commit mailing list