Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


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
18 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...