Bug 37905: Use correct RFC3339 formatted date to the server
This patch suggests to revert the previous attempt to fix this problem.
The date was using the client-side's tz and so the "last hour" was not
matching the one from the server.
With bug 37831 with simply need to pass a rfc3339-formatted date and the
filtering will be done as expected.
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit caca6791ce)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
26cbf2492d
commit
c2284dbaf9
|
|
@ -261,12 +261,10 @@
|
|||
|
||||
let additional_filters = {
|
||||
enqueued_on: function(){
|
||||
let now = new Date();
|
||||
if ( $("#include_last_hour").is(":checked") ) {
|
||||
now.setHours(now.getHours() - 1);
|
||||
return { ">": now.toISOString() };
|
||||
return { ">": dayjs().subtract(1, 'hour').format() };
|
||||
} else {
|
||||
return { "<": now.toISOString() };
|
||||
return { "<": dayjs().format()};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue