uvarov-frontend / vanilla-calendar-pro

The Vanilla Calendar Pro is a versatile JavaScript date and time picker component with TypeScript support, making it compatible with any JavaScript frameworks and libraries. It is designed to be lightweight, easy to use, and feature-rich, without relying on external dependencies.
https://vanilla-calendar.pro
Other
482 stars 60 forks source link

One day shift down from the end date in type 'Multiple' calendar #298

Closed RamezYoussef712 closed 2 months ago

RamezYoussef712 commented 3 months ago

first, I faced this unexpected behavior locally, whenever I select 2 days in 'multiple-ranged' that has 96 days or more difference, the end date is shifted one day less. Then I tried to debug my initializing code as I suspected my code caused the bug, then I thought I should try reproducing the behavior using the documentation "Date Selection in Input". So I opened the multiple sandbox example: "https://codesandbox.io/p/sandbox/solitary-lake-kz4sjj?file=%2Fcalendar.ts&utm_medium=sandpack" ... And I found the same behavior but with higher days difference of 255 days ... I used exactly these dates to test in the sandbox "2024-08-19 — 2025-03-31"

uvarov-frontend commented 3 months ago

Demonstrate the problem in the recording and provide your time zone. In my time zone GMT +3 I do not experience such a problem.

uvarov-frontend commented 2 months ago

Please open the problem if this is relevant, and provide detailed information under what conditions and in what time zone this happens, thank you.