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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt (-3 / +6 lines)
Lines 111-123 Link Here
111
                       let fromdate = $("#from");
111
                       let fromdate = $("#from");
112
                       let isoFrom;
112
                       let isoFrom;
113
                       if ( fromdate.val() !== '' ) {
113
                       if ( fromdate.val() !== '' ) {
114
                         isoFrom = fromdate.get(0)._flatpickr.selectedDates[0].toISOString().substring(0,10);
114
                         let selectedDate = fromdate.get(0)._flatpickr.selectedDates[0];
115
                         selectedDate.setHours(0, 0, 0, 0);
116
                         isoFrom = selectedDate.toISOString();
115
                       }
117
                       }
116
118
117
                       let todate = $("#to");
119
                       let todate = $("#to");
118
                       let isoTo;
120
                       let isoTo;
119
                       if ( todate.val() !== '' ) {
121
                       if ( todate.val() !== '' ) {
120
                         isoTo = todate.get(0)._flatpickr.selectedDates[0].toISOString().substring(0,10);
122
                         let selectedDate = todate.get(0)._flatpickr.selectedDates[0];
123
                         selectedDate.setHours(23, 59, 59, 999);
124
                         isoTo = selectedDate.toISOString();
121
                       }
125
                       }
122
126
123
                       if ( isoFrom || isoTo ) {
127
                       if ( isoFrom || isoTo ) {
124
- 

Return to bug 33736