react-native-datetimepicker / datetimepicker

React Native date & time picker component for iOS, Android and Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android not support below 1970 years

mhd-shagul opened this issue · comments

Bug report

IOS supported below 1970 years android not supported below 1970 how fix it

I'm seeing the same issue on a Pixel 4 with version 7.6.0.

@mhd-shagul you can work around this issue by setting mininumDate={new Date(1900, 0, 1)} or some other date that's low enough. You can also downgrade the library to an earlier version (I know 7.4.2 doesn't have this bug for sure).

I did some more testing and looks like this bug was introduced in version 7.5.0 in this PR: #744.

The bug doesn't reproduce in 7.4.2.

I'm having the same issue on 7.6.0, any updates, besides the workaround?

I'm seeing the same issue on a Pixel 4 with version 7.6.0.

@mhd-shagul you can work around this issue by setting mininumDate={new Date(1900, 0, 1)} or some other date that's low enough. You can also downgrade the library to an earlier version (I know 7.4.2 doesn't have this bug for sure).

I've set the version to 7.4.2 and it's working but the minimum year is 1900. Can we go below to this year as we are in IOS?

I'm bumping this issue, as it is still a thing in version 7.6.4. The workaround does its job, but it is weird that we still need it in the first place. Any updates?

I'm seeing the same issue on a Pixel 4 with version 7.6.0.

@mhd-shagul you can work around this issue by setting minimumDate={new Date(1900, 0, 1)} or some other date that's low enough. You can also downgrade the library to an earlier version (I know 7.4.2 doesn't have this bug for sure).

Should be mininumDate={new Date(1900, 0, 1)}, there is a spelling mistake.