MAMP PHP date.timezone incorrect

2019-08-01 03:57发布

问题:

I am using MAMP to run some local PHP pages in my browser for school and I am having a weird issues where my timezone is stuck on "Europe/Berlin". I have manually set it to date.timezone = "America\Los_Angeles" in the 5.4.4 php.ini file (and double checked that is the version that MAMP is using) but no luck. I made sure my time zone in system preferences was set to West Coast time and tried it both with automatic time zone detection and without, but still nothing. Finally, I edited my .profile file, adding export TZ="America/Los_Angeles" but no change.

In the phpInfo tab in the MAMP start page is says both the local value and master value are set to Europe/Berlin and I have no idea how to change it. Any thoughts?

Edit: I restarted MAMP after every change