Mike Carpenter
Mike Carpenter

Reputation: 410

PHP default time zone

Recently updated to PHP 7.3.2 (built 02/15/19) and since then all of our date('H:i:s') variables no longer respect the default timezone originally set in the ini.

Linux system clock is correct. We reset the timezone, rebooted the server, same issue. phpinfo() reports the correct timezone (America/Denver)

Changing the timezone in the ini and via a test script both have no effect on the date/time printed. All date/time variables are 5 hours off regardless of what we set.

Any help would be appreciated. I wasn't able to find any information that reflected this scenario.

Upvotes: 2

Views: 126

Answers (1)

Mike Carpenter
Mike Carpenter

Reputation: 410

Reinstalling 7.3.2 did not resolve the date issue. Removing 7.3.2 and installing 7.3.4 resolved the issue.

Upvotes: 1

Related Questions