Showing posts with label timezone. Show all posts
Showing posts with label timezone. Show all posts

Wednesday, May 23, 2012

Why is subtracting these two times (in 1927) giving a strange result?


If I run the following program, which parses two date strings referencing times one second apart and compares them:

Thursday, May 10, 2012

Monday, April 23, 2012

How to check is timezone identifier valid from code?


I'll try to explain what's the problem here.



According to list of supported timezones from PHP manual, I can see all valid TZ identifiers in PHP.

Thursday, April 12, 2012

How do i get the gmt time in php


I have a server which is set to EST and all records in the db are set to EST. i would like to know how to set it to gmt? I want to put a time zone option to my users.

Thursday, January 12, 2012

jQuery FullCalendar timezone syncronization


I am using the jQuery Fullcalendar plugin (http://arshaw.com/fullcalendar). I am only using it for "full day" events. When the user creates an event, I store it in my database via php as a date (2012-01-12). When sending the list of events to FullCalendar via ajax I convert the date to UNIX time.