Make server TZ available after it is changed
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 2 May 2017 19:55:46 +0000 (19:55 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 2 May 2017 19:55:46 +0000 (19:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14656 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/init.php

index db0d9e6..0799612 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 ...