@Tom-Elliott Thank you for pointing me in the right direction. I’ve corrected it for myself, but after looking around in the PHP code, I’d like to ponder a change in defaults/settings priority.
Right now the FOG timezone selection logic is: If php.ini specifies a timezone (and PHP 8.2 appears to “specify” UTC if there’s nothing explicitly set in php.ini), then use that timezone. Ie, FOG will always use UTC or what is specified in php.ini, and FOG will never use $fogsettings[4].
I propose (only if my above analysis is correct) that we flip the priority logic to favor $fogsettings[4] timezone setting.
fogcore.class.php::setEnv() existing logic:
$defTz = ini_get('date.timezone'); if (empty($defTz)) { if (empty($fog_settings[4])) { $GLOBALS['TimeZone'] = 'UTC'; } else { $GLOBALS['TimeZone'] = $fog_settings[4]; } } else { $GLOBALS['TimeZone'] = $defTz; }Proposed logic:
$defTz = ini_get('date.timezone'); if (empty($fog_settings[4])) { if (empty($defTz)) { $GLOBALS['TimeZone'] = 'UTC'; } else { $GLOBALS['TimeZone'] = $defTz; } } else { $GLOBALS['TimeZone'] = $fog_settings[4]; }