X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=include%2Finit.php;h=e1bd3bbd050d9a95004122594f2eb7721f98f835;hp=0799612be929b6245be9da6c1e52248fb34dbe9c;hb=cf039c515cde0bf2e1d23e1ee4c803c4bc3babe1;hpb=fc0790faf5e38fd0d705f42f7b412dbe2f0f8649 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 ...