Project: titanium
Issue TIMOB-18728: Android: Date picker Can't Select Date after year 2100AD
Android: Date picker Can't Select Date after year 2100AD h5.Steps to reproduce: 1.Run the following code in classic mobile project. {code:title=app.js} Ti.UI.backgroundColor = 'white'; var win = Ti.UI.createWindow({ exitOnClose: true, layout: 'vertical' }); var picker = Ti.UI.createPicker({ type:Ti.UI.PICKER_TYPE_DATE, minDate:new Date(2009,0,1), maxDate:new Date(2200,4,1), value:new Date(2015,2,23), top:50, accessablityLabel: "data picker" }); win.add(picker); win.open(); picker.addEventListener('change',function(e){ Ti.API.info("User selected date: " + e.value.toLocaleString()); }); {code} h5.Expect Result: Date should be available to select until the max value h5.Actual Result: Date only available to 2100AD, no matter what max value set. h5.Use case: For Thailand Buddhist, the year is 543 behind Gregorian year. That is why we need select date after 2100AD. h5.N.B Only happened in android device, iOS works well.
Story points: 5