Skip to content

Incorrect time zone detection #183

@Gaprix

Description

@Gaprix

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions