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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt (-4 / +6 lines)
Lines 262-272 Link Here
262
            let additional_filters = {
262
            let additional_filters = {
263
                enqueued_on: function(){
263
                enqueued_on: function(){
264
                    let now = new Date();
264
                    let now = new Date();
265
                    var tzoffset = (new Date()).getTimezoneOffset() * 60000;
266
                    if ( $("#only_current").is(":checked") && !$("#include_last_hour").is(":checked")) {
267
                        return 0;
268
                    }
265
                    if ( $("#include_last_hour").is(":checked") ) {
269
                    if ( $("#include_last_hour").is(":checked") ) {
266
                        now.setHours(now.getHours() - 1);
270
                        return { ">": (new Date(now.setHours(now.getHours() - 1) - tzoffset)).toISOString().slice(0, -1) };
267
                        return { ">": now.toISOString() };
268
                    } else {
271
                    } else {
269
                        return { "<": now.toISOString() };
272
                        return { "<": (new Date(Date.now() - tzoffset)).toISOString().slice(0, -1) };
270
                    }
273
                    }
271
                }
274
                }
272
            };
275
            };
273
- 

Return to bug 36217