diff --git a/packages/ui/src/components/calendar/DatePopup.svelte b/packages/ui/src/components/calendar/DatePopup.svelte index e29c58dc15..fbf4f9e82d 100644 --- a/packages/ui/src/components/calendar/DatePopup.svelte +++ b/packages/ui/src/components/calendar/DatePopup.svelte @@ -86,7 +86,7 @@ } } const changeMonth = (date: Date): Date => { - return new Date(Date.UTC(date.getFullYear(), date.getMonth() + 1, 1)) + return new Date(Date.UTC(date.getFullYear(), date.getMonth() + 1, 1) + date.getTimezoneOffset() * 60000) } $: if (viewDate) viewDateSec = changeMonth(viewDate)