mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
fix: DatePicker month off by 1 in Android (#4872)
This commit is contained in:

committed by
GitHub

parent
6d7c1ff295
commit
1e47117179
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user