fix: DatePicker month off by 1 in Android (#4872)

This commit is contained in:
Alexander Vakrilov
2017-09-26 09:44:33 +03:00
committed by GitHub
parent 6d7c1ff295
commit 1e47117179
2 changed files with 19 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export class DatePicker extends DatePickerBase {
picker.setCalendarViewShown(false);
const listener = new DateChangedListener(this);
picker.init(this.year, this.month, this.day, listener);
picker.init(this.year, this.month - 1, this.day, listener);
(<any>picker).listener = listener;
return picker;
}