datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Android not support below 1970 years

Open mhd-shagul opened this issue 2 years ago • 10 comments

Bug report

mhd-shagul avatar Nov 09 '23 07:11 mhd-shagul

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

mhd-shagul avatar Nov 09 '23 07:11 mhd-shagul

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).

bolatovumar avatar Nov 10 '23 00:11 bolatovumar

I did some more testing and looks like this bug was introduced in version 7.5.0 in this PR: https://github.com/react-native-datetimepicker/datetimepicker/pull/744.

The bug doesn't reproduce in 7.4.2.

bolatovumar avatar Nov 10 '23 01:11 bolatovumar

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

elkinjosetm avatar Dec 06 '23 14:12 elkinjosetm

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?

itsaliraxa avatar Feb 12 '24 19:02 itsaliraxa

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?

BakkerTom avatar Apr 17 '24 07:04 BakkerTom

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).

This mininumDate tip helped me to resolve the problem. Thank you

yasserelmalouani avatar Jun 19 '24 15:06 yasserelmalouani