mskocik / svelty-picker

Simple date & time picker in svelte
https://mskocik.github.io/svelty-picker/
202 stars 46 forks source link

fixes date sorting in range picker mode for date formats #124

Closed braundominik closed 1 year ago

braundominik commented 1 year ago

Currently when using other display formats in range mode it will only get sorted by number of the day. For example 'displayFormat="j. n. Y"' with the picked dates 2023-08-31,2023-09-01 will show as 1. 9. 2023 - 31. 8. 2023. Sorting the dates before formatting should fix it.

netlify[bot] commented 1 year ago

Deploy Preview for svelty-picker-preview failed.

Name Link
Latest commit e048e7c87a70276104970ba4aac6dc6dfd22b0e5
Latest deploy log https://app.netlify.com/sites/svelty-picker-preview/deploys/64e61f5d2b3d30000877db7d
mskocik commented 1 year ago

Thanks, didn't notice this one since I've never used it personally :)