Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Missed the same day in the next year #290

Open
Ke4nuReeves opened this issue Aug 6, 2020 · 2 comments
Open

Missed the same day in the next year #290

Ke4nuReeves opened this issue Aug 6, 2020 · 2 comments

Comments

@Ke4nuReeves
Copy link

I tried to pick the same day in the next year, and it's missed. For example, today is 6.08.2020, but, when I try to pick 6.08.2021 its absent.

@Ke4nuReeves
Copy link
Author

setMinDate overrides maxYear...

@Akhunzaada
Copy link
Contributor

Akhunzaada commented Nov 6, 2020

@Ke4nuReeves The library currently supports date ranges of ±1 year only in both directions from the current date. In your case current date was 6.08.2020 and +1 year in future ended on day 5.08.21 hence the missing same day of next year.

Also, since the picker is circular, after the last day of next year, i.e. 5.08.21 you will see the next day as 8.08.19.

Solution: Use a separate Year picker available both from Builder class and XML.

Akhunzaada added a commit to Akhunzaada/SingleDateAndTimePicker that referenced this issue Nov 6, 2020
Other florent37#306, florent37#303, florent37#269, florent37#290
The issues were mainly caused because of incorrect retrieving of today item index.
Optimized today item index search on scroll.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants