Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect time zone detection #183

Open
Gaprix opened this issue Dec 16, 2023 · 1 comment
Open

Incorrect time zone detection #183

Gaprix opened this issue Dec 16, 2023 · 1 comment

Comments

@Gaprix
Copy link

Gaprix commented Dec 16, 2023

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

TIMEZONE=$(date +%Z)

Suggested solution

cat /etc/timezone

This returns correct timezone for me (Europe/Moscow)

@dktapps
Copy link
Member

dktapps commented Jan 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants