PHP 8 strict date timezone

Mar 3
by shogun
PHP logo

When installing PHP 8 using brew you have to be aware that the date timezone may have the wrong timezone set.

The php.ini that is included with the package has the wrong date.timezone.
This date.timezone = “US/Pacific” is in the current php.ini
notice the depreciated US/Pacific and also the curly double quotes.

Below is what it should be.  php's own site has a space, and php will error if there are any spaces so use underscore.
some were suggesting US, but US errors for me.
date.timezone = "America/Los_Angeles"


Login or Register to Comment or Post