jQuery FullCalendar timezone synchronization

后端 未结 1 1376
臣服心动
臣服心动 2021-01-23 03:54

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

相关标签:
1条回答
  • 2021-01-23 03:58

    FullCalendar has a option for this, ignoreTimezone (see: http://arshaw.com/fullcalendar/docs/event_data/ignoreTimezone/ ), just make sure this is set to true (which it is by default*) and the user will see the same time that the server sends, regardless of user's timezone.

    (*personally I think the default is wrong, and the developer seems to acknowledge that in the docs, so it'd be worth setting explicitly.)

    0 讨论(0)
提交回复
热议问题