From: pdontthink Date: Tue, 2 May 2017 19:55:46 +0000 (+0000) Subject: Make server TZ available after it is changed X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=d57e75ab45d644f564d2b4438675f693bad5269e;ds=sidebyside Make server TZ available after it is changed git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14656 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/init.php b/include/init.php index db0d9e6b..0799612b 100644 --- a/include/init.php +++ b/include/init.php @@ -693,6 +693,8 @@ switch (PAGE_NAME) { $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 ...