fix calendar problem with UTC (#2268)
This commit is contained in:
@@ -181,7 +181,6 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
document.addEventListener('kimai.initialized', function(event) {
|
document.addEventListener('kimai.initialized', function(event) {
|
||||||
// prevent multiple open popovers
|
// prevent multiple open popovers
|
||||||
jQuery('html').on('click', function(e) {
|
jQuery('html').on('click', function(e) {
|
||||||
@@ -231,7 +230,8 @@
|
|||||||
height: 'auto',
|
height: 'auto',
|
||||||
nowIndicator: true,
|
nowIndicator: true,
|
||||||
now: '{{ now|date_format('c') }}',
|
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 %},
|
weekends: {% if config.showWeekends %}true{% else %}false{% endif %},
|
||||||
businessHours: {
|
businessHours: {
|
||||||
dow: [{{ config.businessDays|join(',') }}],
|
dow: [{{ config.businessDays|join(',') }}],
|
||||||
|
|||||||
Reference in New Issue
Block a user