diff --git a/src/components/Widgets/Clock.vue b/src/components/Widgets/Clock.vue index 9b238f4501..f7a22bd1d4 100644 --- a/src/components/Widgets/Clock.vue +++ b/src/components/Widgets/Clock.vue @@ -40,7 +40,7 @@ export default { return !this.options.hideSeconds; }, use12Hour() { - if (typeof this.options.use12Hour === "boolean") return this.options.use12Hour; + if (typeof this.options.use12Hour === 'boolean') return this.options.use12Hour; // this is the default, it gets computed by the DateTimeFormat implementation return Intl.DateTimeFormat(this.timeFormat, { timeZone: this.timeZone, hour: 'numeric' }).resolvedOptions().hour12 ?? false; }, diff --git a/src/components/Widgets/Mvg.vue b/src/components/Widgets/Mvg.vue index 166eed0043..62a45bc6b3 100644 --- a/src/components/Widgets/Mvg.vue +++ b/src/components/Widgets/Mvg.vue @@ -23,7 +23,7 @@ :class="{cancelled: departure.cancelled}">{{ departure.destination }} {{ Math.max(0, + >{{ Math.max(0, (departure.realtimeDepartureTime - departure.plannedDepartureTime)/60000) }}