From 138181814def973e8b05aa464039d034c53d3e82 Mon Sep 17 00:00:00 2001 From: 14ROVI <29734170+14ROVI@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:35:52 +0000 Subject: [PATCH] works on firefox now --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0a9f155..479a4f9 100644 --- a/index.js +++ b/index.js @@ -71,8 +71,8 @@ async function loadEvents() { event.text = text; let data = extractor(event.text); event.attributes = data.attributes; - event.attributes.date = new Date(event.attributes.date); - event.attributes.date_end = new Date(event.attributes.date_end); + event.attributes.date = new Date(event.attributes.date.replace(" ", "T").replace(" ", "")); + event.attributes.date_end = new Date(event.attributes.date_end.replace(" ", "T").replace(" ", "")); event.body = data.body; }); promises.push(promise);