Fix PHP UTC issue, new PHP updates did not not respect System TimeZone

This commit is contained in:
johnnyq 2024-03-21 14:23:16 -04:00
parent bdf868588e
commit 2f4ddd85ca
1 changed files with 3 additions and 0 deletions

View File

@ -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);