fix calendar problem with UTC (#2268)

This commit is contained in:
Kevin Papst
2021-01-16 00:00:47 +01:00
committed by GitHub
parent 1eae149c75
commit e2324b7d51

View File

@@ -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(',') }}],