wsharba / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 1 forks source link

Some devices have a broken DatePicker preventing dates before jan 1st 1970 #1062

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Seems like this is a known issue described here:

http://stackoverflow.com/questions/8620781/datepickerdialog-incorrectly-enforcin
g-a-minimum-date-of-jan-1-1970

And, of course, Google has done nothing 
http://code.google.com/p/android/issues/detail?id=23481&thanks=23481&ts=13246750
34

Here's more: 
http://kevsaidwhat.blogspot.com/2011/10/fun-with-android-datepicker-and-1970.htm
l

Original issue reported on code.google.com by mitchellsundt@gmail.com on 11 Sep 2014 at 8:26

GoogleCodeExporter commented 9 years ago
The described work-around doesn't work as-is for us because we dynamically 
create the DatePicker object.

But we hack the Date Picker already to show and hide the day and month 
spinners, so perhaps we can do something similar to coerce it to apply sane 
start/end date limits?

Original comment by mitchellsundt@gmail.com on 11 Sep 2014 at 8:29