Skip to content
Snippets Groups Projects
Commit d5f00552 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: don’t use custom date formatter to compare dates

parent 1453f664
No related branches found
No related tags found
No related merge requests found
...@@ -280,14 +280,10 @@ export default { ...@@ -280,14 +280,10 @@ export default {
timeslotsForDay() { timeslotsForDay() {
return this.timeslots return this.timeslots
.filter((timeslot) => { .filter(
const dateFormat = new Intl.DateTimeFormat('en', { (timeslot) =>
year: 'numeric', getISODateString(new Date(timeslot.start)) === getISODateString(this.selectedDay),
month: '2-digit', )
day: '2-digit',
})
return dateFormat.format(new Date(timeslot.start)) === dateFormat.format(this.selectedDay)
})
.map((timeslot) => { .map((timeslot) => {
const id = timeslot.show const id = timeslot.show
const show = this.getShow({ id }) const show = this.getShow({ id })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment