svelte-plugins / datepicker

A simple datepicker component designed for Svelte.
https://svelte-plugins.github.io/datepicker
MIT License
54 stars 12 forks source link

selecting date provides correct date variable but selects the previous day in the calendar UI 🐛 #26

Open dboundz opened 4 months ago

dboundz commented 4 months ago

Describe the bug When selecting a date from the calendar in (1.0.9) I get the correct date object selected but the day of the month with the shown selected in the calendar is 1 day earlier than that clicked.

This is with a single date selection.

My testing is via variables browsers on MacOS and I've added console logs through the lifecycle of the click event through and isFirstInRange is consistently choosing the wrong date.

MacOS 14.4.1 Chrome 125.0.6422.142