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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc (+2 lines)
Lines 59-64 Link Here
59
            var withtime = (options&&options.withtime)||false;
59
            var withtime = (options&&options.withtime)||false;
60
60
61
            if(dateformat=='rfc3339' && withtime) return m.format();
61
            if(dateformat=='rfc3339' && withtime) return m.format();
62
            if(dateformat=='iso'     && withtime) return m.format("YYYY-MM-DDTHH:mm:ss.sssZ"); // Do not use toISOString(), it does not behave as expected
63
                                                                                               // Might be fixed in a future version of dayjs
62
64
63
            var timeformat = (options&&options.timeformat)||def_time_format;
65
            var timeformat = (options&&options.timeformat)||def_time_format;
64
            var date_pattern = get_date_pattern(dateformat);
66
            var date_pattern = get_date_pattern(dateformat);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt (-3 / +4 lines)
Lines 264-272 Link Here
264
                    let now = new Date();
264
                    let now = new Date();
265
                    if ( $("#include_last_hour").is(":checked") ) {
265
                    if ( $("#include_last_hour").is(":checked") ) {
266
                        now.setHours(now.getHours() - 1);
266
                        now.setHours(now.getHours() - 1);
267
                        return { ">": now.toISOString() };
267
                        let now_with_server_tz = $datetime(now.toISOString(), { dateformat: 'iso' });
268
                        return { ">": now_with_server_tz };
268
                    } else {
269
                    } else {
269
                        return { "<": now.toISOString() };
270
                        let now_with_server_tz = $datetime(now.toISOString(), { dateformat: 'iso' });
271
                        return { "<": now_with_server_tz };
270
                    }
272
                    }
271
                }
273
                }
272
            };
274
            };
273
- 

Return to bug 36217