Skip to content

Commit

Permalink
Fix time offset
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Platov <[email protected]>
  • Loading branch information
SasLord committed Dec 27, 2024
1 parent a8c9615 commit a4edf21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/components/calendar/DatePopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a4edf21

Please sign in to comment.