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