PHP-Binaries icon indicating copy to clipboard operation
PHP-Binaries copied to clipboard

Incorrect time zone detection

Open Gaprix opened this issue 2 years ago • 1 comments

Description

After compiling PHP, the time zone is set incorrectly

Warning: PHP Startup: Invalid date.timezone value 'MSK', using 'UTC' instead in Unknown on line 0

It's caused by https://github.com/pmmp/PHP-Binaries/blob/11db5a591309d0665a7a95890810ed53e7674673/compile.sh#L1250

Suggested solution

cat /etc/timezone

This returns correct timezone for me (Europe/Moscow)

Gaprix avatar Dec 16 '23 23:12 Gaprix

Not sure if this will work on macOS (or more esoteric *nixes)

dktapps avatar Jan 08 '24 11:01 dktapps