From e2324b7d51f143b6fc40800b55e386e3cfc6013a Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Sat, 16 Jan 2021 00:00:47 +0100 Subject: [PATCH] fix calendar problem with UTC (#2268) --- templates/calendar/user.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/calendar/user.html.twig b/templates/calendar/user.html.twig index 939c977f..8b68b255 100644 --- a/templates/calendar/user.html.twig +++ b/templates/calendar/user.html.twig @@ -181,7 +181,6 @@ }); }; - document.addEventListener('kimai.initialized', function(event) { // prevent multiple open popovers jQuery('html').on('click', function(e) { @@ -231,7 +230,8 @@ height: 'auto', nowIndicator: true, now: '{{ now|date_format('c') }}', - timezone: '{{ app.user.preferenceValue("timezone") }}', + {# see https://github.com/kevinpapst/kimai2/issues/2155 #} + timezone: '{{ app.user.timezone == 'UTC' ? 'GMT' : app.user.timezone }}', weekends: {% if config.showWeekends %}true{% else %}false{% endif %}, businessHours: { dow: [{{ config.businessDays|join(',') }}],