Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch 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

Related Hot Questions

Government Jobs Opening