Reputation: 33
I got JSON with correct time but fullcalendar (?) shows my event 1 hour ahead. I tried timezone : local , ignoreTimezone but no success any help would be nice I'm desprate.
My timezone is UTC +08:00
My json is {"hmi_alldays":[{""order_employee_start":"2015-02-03T05:00:00","order_id":1791}
Upvotes: 0
Views: 2911
Reputation: 1736
I had a similar issue. I don't know which version of fullcalendar you are using, but the latest version at this time (2.2.6) in combination with moment.js and the usage of timezone works completely fine for me:
var events_array = [
{
title: 'Test1',
start: moment('2015-02-03T05:00:00'),
end : moment('2015-02-03T12'),
tip: 'Test1'},
];
...
$('#calendar').fullCalendar({
events: events_array,
timezone : 'local',
eventRender: function(event, element) {
element.attr('title', event.tip);
}
});
See example here.
Upvotes: 3