From 9505bae33d2f22eb5def3e6c27d78ec6461bf573 Mon Sep 17 00:00:00 2001 From: soraefir Date: Wed, 19 Jul 2023 09:57:38 +0200 Subject: [PATCH] Corrected daterange --- public/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 7417d49..0310859 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -201,7 +201,7 @@ const app = new Vue({ total_days: function(){ if(this.journey_data.main.length==0) return 0; try{ - return (this.journey_data.main[this.journey_data.main.length-1].dateRange[0]-this.journey_data.main[0].dateRange[0])/(1000*60*60*24) + return (this.journey_data.main[this.journey_data.main.length-1].dateRange[1]-this.journey_data.main[0].dateRange[0])/(1000*60*60*24) }catch{ return '?' } @@ -209,7 +209,7 @@ const app = new Vue({ total_date: function(){ if(this.journey_data.main.length==0) return ''; try{ - return `${this.format_date(this.journey_data.main[0].dateRange[0])} - ${this.format_date(this.journey_data.main[this.journey_data.main.length-1].dateRange[0])}`; + return `${this.format_date(this.journey_data.main[0].dateRange[0])} - ${this.format_date(this.journey_data.main[this.journey_data.main.length-1].dateRange[1])}`; }catch{ return '?'; }