fix Sunday as first dow of week in date-picker (#2084)

This commit is contained in:
Kevin Papst
2020-11-02 10:32:46 +01:00
committed by GitHub
parent aba06ba3f0
commit ae0a6ebfb5
6 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ export default class KimaiDateRangePicker extends KimaiPlugin {
activateDateRangePicker(selector) {
const TRANSLATE = this.getContainer().getTranslation();
const DATE_UTILS = this.getContainer().getPlugin('date');
const firstDow = this.getConfiguration('first_dow_iso');
const firstDow = this.getConfiguration('first_dow_iso') % 7;
jQuery(selector + ' ' + this.selector).each(function(index) {
let localeFormat = jQuery(this).data('format');