diff --git a/components/calendar/Controller.vue b/components/calendar/Controller.vue index 650a4d0f..3769e2f7 100644 --- a/components/calendar/Controller.vue +++ b/components/calendar/Controller.vue @@ -40,9 +40,7 @@ export default Vue.extend({ computed: { datetime(): string { - const month = (this.month).toString().padStart(2, '0'); - // Passing with time is important, otherwise it's handled as UTC. - return `${this.year}-${month}-01 00:00:00`; + return new Date(this.year, this.month - 1).toISOString(); }, previousCalendar(): CalendarLinkInfo { return {