Do not set abbreviation for PHP timezone, like EST, CST, PST and so on. They don’t take into account daylight savings etc. So winter and summer time shift can be different. Eg. EST is GMT-5 at summer and GMT-4 at winter. EET is GMT+2, EEST (summer time in Kyiv) is GMT+3. So use the Continent and City name instead of abbreviation:

date.timezone = America/New_York ; — correct for Florida.

Change this setting and restart your local Apache to emulate server in another location.



This document has been copied from FAVOR.com.ua (https://favor.com.ua/en/blogs/32925.html).
All rights reserved by author of the material. In case of re-publication, the link to the source of the material is strongly required!
Document date: