vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

Datepicker adds one hour between March 9 and March 29 2025

Open aostijn opened this issue 9 months ago • 12 comments

Describe the bug For some reason, when the device's timezone does not match the timezone provided to the datepicker and I select a date between March 9 and March 29 2025, an hour is added to the chosen time. Outside of these dates, there's no issue in the year 2025. The same issue occurs between March 8 and March 28 2026. Haven't tried for following years but the pattern might continue. It also doesn't happen for every combination of device timezone and the timezone provided to the datepicker. Some more investigation would be needed to determine the exact conditions in which the issue occurs.

The issue was already present in v9.0.3, maybe already before. Still present in v11.0.1.

To Reproduce

  1. Set your device's timezone to Europe/Brussels.
  2. Go to this example.
  3. Choose a date and time between March 9 and March 29 2025.
  4. Confirm the date and time.
  5. Observe how one hour is added to the time.

Expected behavior The time should be the same as selected.

Screenshots Image

Desktop & mobile (please complete the following information):

  • Browser: Chrome Version 131.0.6778.140 (Official Build) (64-bit)
  • Library version: 11.0.1

aostijn avatar Mar 07 '25 11:03 aostijn