Timezone test in PHP

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.

TagsTags:  timezone

Send by E-mailSend by E-mail   Print versionPrint version

No comments yet… Be the first to leave comment on this topic!

You may sign in using:
Enter with Facebook Enter with Google Enter with VK