[Rt-commit] r18644 - in rt/3.999/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Tue Mar 3 19:44:37 EST 2009


Author: sartak
Date: Tue Mar  3 19:44:36 2009
New Revision: 18644

Modified:
   rt/3.999/trunk/   (props changed)
   rt/3.999/trunk/lib/RT/DateTime.pm

Log:
 r80851 at onn:  sartak | 2009-03-03 19:44:28 -0500
 If the user time zone is requested and the user has none, use the server's time zone


Modified: rt/3.999/trunk/lib/RT/DateTime.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/DateTime.pm	(original)
+++ rt/3.999/trunk/lib/RT/DateTime.pm	Tue Mar  3 19:44:36 2009
@@ -30,7 +30,10 @@
     if (lc($tz) eq 'user') {
         $tz = $self->current_user->user_object->time_zone;
     }
-    elsif (lc($tz) eq 'server') {
+
+    # if the user time zone is requested and the user has none, use the server's
+    # time zone
+    if (!$tz || lc($tz) eq 'server') {
         $tz = RT->config->get('TimeZone');
     }
 


More information about the Rt-commit mailing list