|
@ -200,7 +200,7 @@ export default { |
|
|
|
|
|
|
|
|
// const tomorrow = addDays(new Date(), 1).toLocaleDateString('en-CA') |
|
|
// const tomorrow = addDays(new Date(), 1).toLocaleDateString('en-CA') |
|
|
|
|
|
|
|
|
const scheduleFetchFilterFormula = `AND(Is_Current="Yes",Origin_IATA="${this.$route.params.o}",Destination_IATA="${this.$route.params.d}",Effective_End>"${today}",SEARCH("${new Date(this.$route.params.departure).getDay()}",Frequency)>0)` |
|
|
|
|
|
|
|
|
const scheduleFetchFilterFormula = `AND(Is_Current="Yes",Origin_IATA="${this.$route.params.o}",Destination_IATA="${this.$route.params.d}",Effective_End>"${today}",SEARCH("${new Date(this.$route.params.departure).getUTCDay()}",Frequency)>0)` |
|
|
// console.log(scheduleFetchFilterFormula) |
|
|
// console.log(scheduleFetchFilterFormula) |
|
|
const scheduleFetchSort = '&sort[0][field]=Departure_TimeL&sort[0][direction]=asc' |
|
|
const scheduleFetchSort = '&sort[0][field]=Departure_TimeL&sort[0][direction]=asc' |
|
|
|
|
|
|
|
@ -232,7 +232,7 @@ export default { |
|
|
formattedDate (date) { |
|
|
formattedDate (date) { |
|
|
const thisDate = new Date(date) |
|
|
const thisDate = new Date(date) |
|
|
const month = thisDate.toLocaleString('en-us', { month: 'short' }) |
|
|
const month = thisDate.toLocaleString('en-us', { month: 'short' }) |
|
|
const year = ((thisDate.getFullYear() !== new Date().getFullYear()) ? ', ' + thisDate.getFullYear() : '') |
|
|
|
|
|
|
|
|
const year = ((thisDate.getUTCFullYear() !== new Date().getUTCFullYear()) ? ', ' + thisDate.getUTCFullYear() : '') |
|
|
return month + ' ' + thisDate.getUTCDate() + year |
|
|
return month + ' ' + thisDate.getUTCDate() + year |
|
|
}, |
|
|
}, |
|
|
daysList (days) { |
|
|
daysList (days) { |
|
|