Ticket #6988: Display date formats in user's timezone
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Nov 2009 23:27:32 +0000 (16:27 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Nov 2009 23:27:32 +0000 (16:27 -0700)
imp/lib/Application.php

index b53f673..e53a2da 100644 (file)
@@ -430,6 +430,12 @@ class IMP_Application extends Horde_Registry_Application
             $this->_prefsPrepareSourceselect();
             break;
 
+        case 'display':
+            /* Set the timezone on this page so the 'time_format' output uses
+             * the configured time zone's time, not the system's time zone. */
+            Horde_Nls::setTimeZone();
+            break;
+
         case 'flags':
             Horde::addScriptFile('colorpicker.js', 'horde');
             Horde::addScriptFile('flagprefs.js', 'imp');