I have a little oddity that I just noticed inside my fullCalendar implementation.
Basically, I have a date inside the database "04/28/2011 09:00:00" (dmy), which I will convert to a Unix timestamp, which leads to 1303981200.0.
I checked with http://www.onlineconversion.com/unix_time.htm and the timestamp is valid.
However, when I pass this JSON to fullCalendar, it passes the event in an hour!
JSON:
[{"id":"4a315750666d2f70675241544936762b632f514f51513d3d","title":"Blah blah blah","description":"","start":1303981200,"end":1303983000,"className":"A-16","allDay":false}]
Upset
Thank.
, amit_g, , php. - , "" , , javascript Date() FC, .
, ISO 8601 FC.
$startTimestamp = 1303776000; //2011-04-26 at 12am $startISO = date('c', $startTimestamp); echo $startISO; //Outputs 2011-04-26T00:00:00+00:00
FC $startTimestamp, (-4 EST - DST), 12am, javascript Date() 4 , , FC. ISO . , - !
, , .
http://arshaw.com/fullcalendar/docs/event_data/ignoreTimezone/
, . Fullcalendar, , ; , , . . Gotchas FullCalendar. , .