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. https://www.php.net/manual/en/timezones.america.php
date.timezone = "America/Los_Angeles"