shoheiyokoyama / Koyomi

Simple customizable calendar component in Swift :calendar:
MIT License
749 stars 103 forks source link

koyomi(_: didSelect: forItemAt) is return a wrong date #52

Open haroldogtf opened 6 years ago

haroldogtf commented 6 years ago

The method didSelect is returning the same date when selecting a range. It is possible to reproduce in Demo project.

Ex. I select day 17 and after I select day 25. (Issue)

Console prints:

You Selected: Optional(2018-05-17 03:00:00 +0000) You Selected: Optional(2018-05-17 03:00:00 +0000)

But if I select day 25 and after I select day 17. (Works ok)

You Selected: Optional(2018-05-25 03:00:00 +0000) You Selected: Optional(2018-05-17 03:00:00 +0000)