FixAutoDateFixing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
soraefir 2023-07-15 13:08:56 +02:00
parent 8d4ea6618f
commit 8a8f1f5a8a
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -289,6 +289,10 @@ const app = new Vue({
}, },
import_data:function(){ import_data:function(){
this.journey_data = Object.assign({}, JSON.parse(toDecoded(this.impexp))); 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(){ export_data:function(){
this.impexp = toEncoded(JSON.stringify(this.journey_data)); this.impexp = toEncoded(JSON.stringify(this.journey_data));