react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

Fix/single day range

Open PhillipChaffee opened this issue 3 years ago • 1 comments

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

  • [x] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description

The way the calendar currently works is to always return the start and end dates of a range with the time 00:00:00.

I think it is more intuitive to return the end date with a time of 23:59:59. Users would expect the end date they selected to be included in the range.

This would fix this issue and make the calendar more intuitive IMO.

Related Issue: #546

PhillipChaffee avatar Aug 02 '22 21:08 PhillipChaffee