ion-datetime-picker icon indicating copy to clipboard operation
ion-datetime-picker copied to clipboard

onlyValid 'between' doesn't work correctly with month list on IOS

Open sergetk opened this issue 8 years ago • 5 comments

If I set a range with onlyValid. I can change month outside the cut-off range by selecting month from select list , the dropdown will display incorrect month but the model will actually be correct.

Example... if cut-off day is 6 Feb , and I use dropdown to select March then select list will show March but the model and actual days calendar will still show days for Feb screen shot 2017-02-08 at 9 34 53 am .

This bug doesn't show up on browsers but shows up on IOS simulator or ipad device.

sergetk avatar Feb 07 '17 20:02 sergetk

Also having this problem

markoivanovski avatar Feb 16 '17 22:02 markoivanovski

Thanks for reporting, I'll try to look into it.

katemihalikova avatar Mar 08 '17 07:03 katemihalikova

Same bugs happened to me. After search a while, i found the root cause for mine is iOS date parsing different from Android. So make sure u are passing correct date object for 'between' or others.

l1nknyto avatar Nov 20 '17 11:11 l1nknyto

@l1nknyto Is there any specific format that dates if we pass, will disable blocked values in month field both on android and ios consistently.? image

srimitetib23 avatar Jan 12 '18 05:01 srimitetib23

@srimitetib23 yyyy/MM/dd hh:mm if you dont use time, just use: yyyy/MM/dd

hope that helps.

l1nknyto avatar Jan 16 '18 05:01 l1nknyto