pmmp / PHP-Binaries

Compile scripts used to build PHP for PocketMine-MP on multiple platforms
116 stars 164 forks source link

Incorrect time zone detection #183

Open Gaprix opened 8 months ago

Gaprix commented 8 months ago

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)

dktapps commented 8 months ago

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