Closed
Description
Describe the bug
Selecting only a given date causes the time (hours) to shift unexpectedly.
To Reproduce
Steps to reproduce the behaviour:
- Go to https://stackblitz.com/edit/vuepic-vue-datepicker?file=src%2Fcomponents%2FPlayground.vue
- Select e.g. 1 February 2024 10:00 am
- Start changing the day to 11th, then 12, then 13.
- Each time the day is changed, the time presented (hours) moves an hour ahead
Observations
This seems to be related to DST changes, local timezone is in DST now and selected date is outside DST. This issue does not reproduce when selecting another date in DST.
Expected behaviour
When the user is interacting with the date only as in this example, the selected hours should not be affected.
In the edge case of starting with hours as 23, selecting e.g. 16th overflows into actually selecting 17th (this interaction changes both the date and the hours)
Desktop & mobile (please complete the following information):
- Browser Chrome - Version 128.0.6613.138 (Official Build) (64-bit)
- Library version 9.0.3
- Local timezone - Europe/Athens