[Koha-bugs] [Bug 30718] Use flatpickr's altInput option everywhere

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 19 11:42:37 CEST 2022


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

--- Comment #91 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Victor Grousset/tuxayo from comment #85)
> Created attachment 139085 [details] [review]
> Bug 30718: Fix serial claims filters
> 
> https://bugs.koha-community.org/show_bug.cgi?id=30718
> Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>

This patch does:
-            var beginDate = Date_from_syspref($("#from").val()).getTime();
-            var endDate   = Date_from_syspref($("#to").val()).getTime();
+            var beginDate = new Date($("#from").val()).getTime();
+            var endDate   = new Date($("#to").val()).getTime();

Still seeing in its context:
                // We make a JS Date Object, according to the locale
                var pdate = Date_from_syspref($(this).text()).getTime();

And it seems the only real remains of this function.
So it probably should be changed too. Not tested however.
While finishing up, leaving it here as TODO.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list