https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33132
--- Comment #8 from Marcel de Rooy <m.de.r...@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. _______________________________________________ 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/