wakirin / Litepicker

Date range picker - lightweight, no dependencies
MIT License
898 stars 132 forks source link

When placing the date range the script shows a 1 day before #320

Open brennosacra opened 1 year ago

brennosacra commented 1 year ago

I'm creating a selector for the user to choose predefined intervals, such as today, a week, a month, etc.

When I use today the range should be today's date - today's date, but litepicker puts the date 1 day earlier.

`new Litepicker({ element: document.getElementById('picker'), format: "DD/MM/YYYY", startDate: '2023-08-26', endDate: '2023-08-26', singleMode: false,

});`

Return 25/08/2023 - 25/08/2023