View | Details | Raw Unified | Return to bug 37643
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc (-2 / +1 lines)
Lines 116-122 Link Here
116
            if ( !accepts_period ) {
116
            if ( !accepts_period ) {
117
                if ( accepts_time ) {
117
                if ( accepts_time ) {
118
                    let parsedDate = flatpickr.parseDate(dateText, instance.config.dateFormat);
118
                    let parsedDate = flatpickr.parseDate(dateText, instance.config.dateFormat);
119
                    if ( !parsedDate.getHours() ) {
119
                    if ( Number.isNaN(parsedDate.getHours()) ) {
120
                        instance.setDate(selectedDates[0].setHours(23, 59, 0, 0));
120
                        instance.setDate(selectedDates[0].setHours(23, 59, 0, 0));
121
                    }
121
                    }
122
                }
122
                }
123
- 

Return to bug 37643