diff --git a/modules/ui/note_comments.js b/modules/ui/note_comments.js index a9890779c..d22740481 100644 --- a/modules/ui/note_comments.js +++ b/modules/ui/note_comments.js @@ -99,6 +99,7 @@ export function uiNoteComments() { if (!s) return null; var detected = utilDetect(); var options = { day: 'numeric', month: 'short', year: 'numeric' }; + s = s.replace(/-/g, '/'); // fix browser-specific Date() issues var d = new Date(s); if (isNaN(d.getTime())) return null; return d.toLocaleDateString(detected.locale, options);