From 2f4ddd85cab63154dfaec62ccb1abbe0d4c31b83 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 21 Mar 2024 14:23:16 -0400 Subject: [PATCH] Fix PHP UTC issue, new PHP updates did not not respect System TimeZone --- check_login.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_login.php b/check_login.php index 326eb412..feea9eab 100644 --- a/check_login.php +++ b/check_login.php @@ -58,6 +58,9 @@ $session_timezone = $row['config_timezone']; // 2024-02-08 JQ - The option to set the timezone in PHP was disabled to prevent inconsistencies with MariaDB/MySQL, which utilize the system's timezone, It is now consdered best practice to set the timezone on system itself //date_default_timezone_set($session_timezone); +// 2024-03-21 JQ - Re-Enabled Timezone setting as new PHP update does not respect System Time but defaulted to UTC +date_default_timezone_set($session_timezone); + //Set Currency Format $currency_format = numfmt_create($session_company_locale, NumberFormatter::CURRENCY);