From 8a8f1f5a8ae23e4bb87745ba9d0d30cb058ecfbc Mon Sep 17 00:00:00 2001 From: soraefir Date: Sat, 15 Jul 2023 13:08:56 +0200 Subject: [PATCH] FixAutoDateFixing --- public/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/main.js b/public/js/main.js index ad64f7a..009fd4d 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -289,6 +289,10 @@ const app = new Vue({ }, import_data:function(){ this.journey_data = Object.assign({}, JSON.parse(toDecoded(this.impexp))); + this.journey_data.main.forEach(e=>{ + e.dateRange[0] = new Date(e.dateRange[0]); + e.dateRange[1] = new Date(e.dateRange[1]); + }) }, export_data:function(){ this.impexp = toEncoded(JSON.stringify(this.journey_data));