Skip to content

Commit

Permalink
Fixed DatePopup: correct operation when changing the time zone
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Platov <[email protected]>
  • Loading branch information
SasLord committed Dec 26, 2024
1 parent 4214ace commit a8c9615
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.getFullYear(), date.getMonth() + 1, 1)
return new Date(Date.UTC(date.getFullYear(), date.getMonth() + 1, 1))
}
$: if (viewDate) viewDateSec = changeMonth(viewDate)
Expand Down

0 comments on commit a8c9615

Please sign in to comment.