Saturday 15 August 2015

php - CONVERT_TZ('2015-08-03 21:00:00', 'GMT','Americia/Chicago') displaying one hour ahead in day light saving period -



php - CONVERT_TZ('2015-08-03 21:00:00', 'GMT','Americia/Chicago') displaying one hour ahead in day light saving period -

i trying list recurring events google calendar. sync done while listing info local database (saved gmt date time) using mysql convert_tz() getting time 1 hr ahead while in day lite saving months.

ex:

i saving date time in gmt , while displaying converting user's timezone date 2015-03-03 21:00:00 (gmt time) displaying 2015-03-03 15:00:00 (in user timezone) fine

but day lite saving months (after march 8) displaying 2015-05-03 16:00:00 (in user timezone)

i tried updating timezone tables still no luck..

php mysql timezone dst convert-tz

No comments:

Post a Comment