Make server TZ available after it is changed
[squirrelmail.git] / include / init.php
index db0d9e6b12e0a59457e8b82d70b0b597d811ebb7..0799612be929b6245be9da6c1e52248fb34dbe9c 100644 (file)
@@ -693,6 +693,8 @@ switch (PAGE_NAME) {
         $set_up_langage_after_template_setup = TRUE;
 
         $timeZone = getPref($data_dir, $username, 'timezone');
         $set_up_langage_after_template_setup = TRUE;
 
         $timeZone = getPref($data_dir, $username, 'timezone');
+        global $server_timezone;
+        $server_timezone = date('T');
 
         /* Check to see if we are allowed to set the TZ environment variable.
          * We are able to do this if ...
 
         /* Check to see if we are allowed to set the TZ environment variable.
          * We are able to do this if ...