arqex / react-datetime

A lightweight but complete datetime picker react component.
1.99k stars 873 forks source link

[Bug] Incorrect years range is displayed in the viewMode header #787

Closed Sabarish-Vasudevan closed 1 year ago

Sabarish-Vasudevan commented 3 years ago

Fixed the incorrect range that is displayed in the year navigation header.

Description

Motivation and Context

image

In the above image, the range should be 2019 - 2030, but it is shown as 2020-2029

Checklist

[x] I have not included any built dist files (us maintainers do that prior to a new release)
[x] I have added tests covering my changes
[x] All new and existing tests pass
[ ] My changes required the documentation to be updated
[ ] I have updated the documentation accordingly
[ ] I have updated the TypeScript 1.8 type definitions accordingly
[ ] I have updated the TypeScript 2.0+ type definitions accordingly
Sabarish-Vasudevan commented 3 years ago

@arqex Could you please review this PR?