X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=include%2Finit.php;h=94a1ba3f4515f276799f04f40f16ae46b89d799d;hp=684a495a1c5bd5c1b76ea21152a606ae334e6a97;hb=HEAD;hpb=701e7beed3baca980039f978c6d536dd91cae775 diff --git a/include/init.php b/include/init.php index 684a495a..94a1ba3f 100644 --- a/include/init.php +++ b/include/init.php @@ -5,7 +5,7 @@ * * File should be loaded in every file in src/ or plugins that occupate an entire frame * - * @copyright 2006-2014 The SquirrelMail Project Team + * @copyright 2006-2022 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -693,6 +693,9 @@ switch (PAGE_NAME) { $set_up_langage_after_template_setup = TRUE; $timeZone = getPref($data_dir, $username, 'timezone'); + 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 ...