[Koha-bugs] [Bug 33132] Searching by DOB still broken in 22.05.x

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 7 10:17:54 CEST 2023


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

--- Comment #8 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Jonathan Druart from comment #7)
> You need to tell moment in which format is the string you are passing it.
> 
> What we are doing is:
> let m = moment("20/06/2023", "DD/MM/YYYY"); // DD/MM/YYYY (indirectly)
> coming from dateformat
> m is a moment object
> you want to dispay the rfc3339/ymd version, and you ask moment to format it
> like that:
> m.format("YYYY-MM-DD")
> 
> Does that make sense now?

Look at this code in the same file:

        window.$date = function(value, options) {
            if(!value) return '';
            var tz = (options&&options.tz)||def_tz;
            var m = moment(value);

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


More information about the Koha-bugs mailing list