Ono tam bylo dlouhou dobu warning, ktery znel takto:
Strict Standards: date(): It is not safe to rely on the system's timezone settings.
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /filelocation right here/system/libraries/Log.php on line 86
Samozrejme kdyz mas ty chybove hlasky potlaceny (produkcni nasazeni), tak se to da prehlidnout. Ale kdyz jsem je mel povoleny, nebo presmerovany do error logu a hlidal to, tak jsem si tohoto nekolikrat vsiml a donutilo me to explicitne upravit php.ini - coz je asi dobre nastavena politika, kdyz chces mit neco spolehliveho.
Pokud muzes experimentovat, mohl bys zapnout:
error_reporting = E_ALL
display_errors = stderr
U sebe nemam nastaveno v .ini nic, a obe verze produkuji UTC:
$ echo '<?php echo date("Y-m-d H:i:s T\n"), date_default_timezone_get(), "\n"; ?>' | /usr/bin/php8.1
2023-04-13 07:55:02 UTC
UTC
$ echo '<?php echo date("Y-m-d H:i:s T\n"), date_default_timezone_get(), "\n"; ?>' | /usr/bin/php8.2
2023-04-13 07:55:04 UTC
UTC