Timezone test in PHP | |
Автор: utilmind |
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. |
Мітки: timezone
Tweet |
Надіслати на E-mail Версія для друку |