Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FullCalendar ignore timezone

I already set;

var calendar = $('#calendar').fullCalendar({
            axisFormat: 'HH:mm',
            timezone:false,
            ignoreTimezone: true,...

So I expect it use current local time settings but its not.. when I select a time in calender event object date is 2 hours ahead.. I think its because my timezone is UTC+2 but I dont want it add anything I want whatever I select in calendar.. here how it look.. (I select Monday 23:30 PM, but event date is: Tuesday 01:30 AM ) enter image description here

I see the browser that that object(Moment) has a property _isUTC:true.. I think this is my problem but how can I set it to false ?

like image 577
TyForHelpDude Avatar asked Mar 08 '16 08:03

TyForHelpDude


1 Answers

You can set local to timezone in your fullcalendar configuration.

timezone:'local',

It works!

like image 102
Chintan Mirani Avatar answered Sep 20 '22 10:09

Chintan Mirani