This commit is contained in:
parent
29067f4807
commit
9505bae33d
@ -201,7 +201,7 @@ const app = new Vue({
|
|||||||
total_days: function(){
|
total_days: function(){
|
||||||
if(this.journey_data.main.length==0) return 0;
|
if(this.journey_data.main.length==0) return 0;
|
||||||
try{
|
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{
|
}catch{
|
||||||
return '?'
|
return '?'
|
||||||
}
|
}
|
||||||
@ -209,7 +209,7 @@ const app = new Vue({
|
|||||||
total_date: function(){
|
total_date: function(){
|
||||||
if(this.journey_data.main.length==0) return '';
|
if(this.journey_data.main.length==0) return '';
|
||||||
try{
|
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{
|
}catch{
|
||||||
return '?';
|
return '?';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user