katemihalikova / ion-datetime-picker

Date and/or time picker for awesome Ionic framework
MIT License
168 stars 101 forks source link

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

Open sergetk opened 7 years ago

sergetk commented 7 years ago

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.

markoivanovski commented 7 years ago

Also having this problem

katemihalikova commented 7 years ago

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

l1nknyto commented 7 years ago

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.

srimitetib23 commented 6 years ago

@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

l1nknyto commented 6 years ago

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

hope that helps.