scheduling dst using -'php,time,calendar,timezone,utc'

scheduling dst  using -'php,time,calendar,timezone,utc'

I am writing a calendar/scheduling app in PHP. Right now I take the day of the week you want the event to occur on and the time. I also ask for the timezone and adjust accordingly to get the event time in GMT.

Then I store that time as an offset from midnight of the day of the show. This is fine and works great, but what happens when I hit daylight savings time?  I'm not sure what to do when that happens.  The other problem is that not all countries have DST so I'm kind of in a bind there.

I am displaying these events on a calendar, so timing is important.

asked Sep 7, 2015 by rajesh
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.