javascript - FullCalendar: Default timezone irrespective of client's location -
i trying create appointment-scheduling application fullcalendar
. want represent time-slots on calendar in 1 timezone(i.e., est) across locations. if person pst zone viewing calendar, times should in est. also, he/she schedules clicks slot, time should in est. how can set default time-zone calendar irrespective of location.
i believe can done specifying timezone string when initialize calendar:
$('#calendar-selector-id-name').fullcalendar({ timezone: 'american/indiana/indianapolis' });
you mentioned gcal.js
, so, wondering if needs defined like:
$('#calendar-selector-id-name').fullcalendar({ timezone: 'american/indiana/indianapolis', eventsources:[{ url: 'https://www.google.com/calendar/feeds/...', currenttimezone: 'american/indiana/indianapolis' }] });
timezone problems when using google calendar #1801
edit
@jaykumarark did further research , dug following:
google calendar - htmllink not defined #2844
which revealed googleapps calendars, initialized htmllink
variable not provided events share free/busy information, , hide event details.
jay noted discovering following work-around:
"commenting line 144 in gcal.js //url=injectqscomponent(url, 'ctz=' + timezonearg);
represent times in particular timezone irrespective of location."
so, in summary:
- currently, setting timezone, irrelevant of location, seems work fine googleapps calendars, long 1 of 3 "share information, ..." sharing settings selected.
- adam shaw has acknowledged issue of
htmllink
requiring existence check, i.e. @ point javascript error addressed. - jay has provided work-around, looking implement synonymous solution.
please refer comments below additional information/clarifications.
Comments
Post a Comment