haiilo / catalyst

A framework agnostic design system and component library based on web components and SCSS.
https://haiilo.github.io/catalyst/
MIT License
7 stars 6 forks source link

New cat-date-inline range has wrong value on endDate #522

Closed ddoe8 closed 1 month ago

ddoe8 commented 1 month ago

Using the new inline picker I selected a range from the 1st of May until the 31st of May. When I log the date converted 'toISOString()' the output is:

0: "2024-04-30T22:00:00.000Z" 1: "2024-05-30T22:00:00.000Z"

I would expect that the second date, or end date, would cover the whole 31st day, like this: 2024-05-31T21:59:59.000Z as the old datepicker implementation (or more correctly 2024-05-31T21:59:59.999Z as discussed with Fynn)