MAMP PHP date.timezone incorrect

萝らか妹 提交于 2019-12-13 01:25:00

问题


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

来源:https://stackoverflow.com/questions/26583142/mamp-php-date-timezone-incorrect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!