Ask a Question
Advertise on boostr.in
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.
Sep 7, 2015
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please