Set PHP date.timezone in php.ini

It would be great if the default php.ini file would set the date.timezone .

Even if it was a default to something like date.timezone = "UTC" would be helpful to avoid the huge error messages when updating wp-cli. :wink:

Yeah! How can we change the timezone in Local otherwise?!

When working with timestamps in PHP, this is a real problem. If you save a time with ACF and convert it with strtotime(), you’re getting the time in UTC instead of the timezone in which WordPress is configured.

1 Like