From 70b9ac1104a3559b559f80651ced22642d17ad73 Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+Rsl1122@users.noreply.github.com> Date: Fri, 22 Jan 2021 11:32:10 +0200 Subject: [PATCH] Set FullCalendar to use UTC as timezone Affects issues: - Possibly fixed #1239 --- Plan/common/src/main/resources/assets/plan/web/js/graphs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plan/common/src/main/resources/assets/plan/web/js/graphs.js b/Plan/common/src/main/resources/assets/plan/web/js/graphs.js index aa6e23af5..106041d1f 100644 --- a/Plan/common/src/main/resources/assets/plan/web/js/graphs.js +++ b/Plan/common/src/main/resources/assets/plan/web/js/graphs.js @@ -151,6 +151,7 @@ function dayByDay(id, series) { function onlineActivityCalendar(id, event_data, firstDay) { window.calendars.online_activity = new FullCalendar.Calendar(document.querySelector(id), { + timeZone: "UTC", themeSystem: 'bootstrap', eventColor: '#2196F3', firstDay: firstDay, @@ -408,6 +409,7 @@ function formatTimeAmount(ms) { function sessionCalendar(id, event_data, firstDay) { window.calendars.sessions = new FullCalendar.Calendar(document.querySelector(id), { + timeZone: "UTC", themeSystem: 'bootstrap', eventColor: '#009688', dayMaxEventRows: 4,