Forráskód Böngészése

Make server TZ available after it is changed

pdontthink 8 éve
szülő
commit
157e472108
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      include/init.php

+ 2 - 0
include/init.php

@@ -693,6 +693,8 @@ switch (PAGE_NAME) {
         $set_up_langage_after_template_setup = TRUE;
         $set_up_langage_after_template_setup = TRUE;
 
 
         $timeZone = getPref($data_dir, $username, 'timezone');
         $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.
         /* Check to see if we are allowed to set the TZ environment variable.
          * We are able to do this if ...
          * We are able to do this if ...