[feat]Properly add timezone to events starttime and endtime; set now to be the time in conference timezone instead of the user s time zone in fullcalendar
This commit is contained in:
parent
03b12eafb0
commit
6777ffb0bb
6 changed files with 25 additions and 9 deletions
|
|
@ -6,6 +6,7 @@ $( document ).ready(function() {
|
|||
var calendar = new FullCalendar.Calendar(calendarEl, {
|
||||
schedulerLicenseKey: fullcalData.data('schedulerLicenseKey'),
|
||||
nowIndicator: true,
|
||||
now: fullcalData.data('now'),
|
||||
expandRows: true,
|
||||
allDaySlot: false,
|
||||
slotMinTime: fullcalData.data('startHour') + ':00:00',
|
||||
|
|
@ -14,7 +15,7 @@ $( document ).ready(function() {
|
|||
start: fullcalData.data('startDate'),
|
||||
end: fullcalData.data('endDate')
|
||||
},
|
||||
timeZone: 'UTC', // TODO: Events are stored in conference's timezone implicitly (UTC+0) in the database
|
||||
timeZone: fullcalData.data('timezone'),
|
||||
initialDate: fullcalData.data('day'),
|
||||
initialView: 'resourceTimeGridDay',
|
||||
resources: fullcalData.data('rooms'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue