https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36217

--- Comment #6 from Johanna Räisä <johanna.ra...@koha-suomi.fi> ---
(In reply to David Cook from comment #4)
> Actually, it's a bit funny how "Current jobs only" and "Only include jobs
> enqueued in the last hour" are handled completely differently. We don't
> really need to send a timestamp even, since we know it's always going to be
> just the last hour. 
> 
> It would be better to have a "only_last_hour" parameter sent by
> "koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt" and
> picked up in "Koha/REST/V1/BackgroundJobs.pm"
> 
> There we can generate a timestamp that is (now - 1 hour) with a timezone
> that matches our database connection (see "sub dbh" in Koha/Database.pm for
> more details about the db connection).

I added a patch which now does what David suggested here. A boolean is passed
to the rest endpoint and the filtering is made with database timezone.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to