From cf039c515cde0bf2e1d23e1ee4c803c4bc3babe1 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 10 Nov 2017 02:39:26 +0000 Subject: [PATCH] May as well grab offset info too git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14724 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/init.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/init.php b/include/init.php index 0799612b..e1bd3bbd 100644 --- a/include/init.php +++ b/include/init.php @@ -693,8 +693,9 @@ switch (PAGE_NAME) { $set_up_langage_after_template_setup = TRUE; $timeZone = getPref($data_dir, $username, 'timezone'); - global $server_timezone; - $server_timezone = date('T'); + global $server_timezone, $server_timezone_offset, $server_timezone_offset_seconds; + list($server_timezone, $server_timezone_offset, $server_timezone_offset_seconds) + = explode('::', date('T::O::Z')); /* Check to see if we are allowed to set the TZ environment variable. * We are able to do this if ... -- 2.25.1