We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7140240 + daac6ed commit 01df866Copy full SHA for 01df866
src/CustomDatePickerAndroid/index.js
@@ -51,8 +51,8 @@ export default class CustomDatePickerAndroid extends Component {
51
// Prepopulate and show time picker
52
const timeOptions = {is24Hour: this.props.is24Hour};
53
if (this.props.date) {
54
- timeOptions.hours = this.props.date.getHours();
55
- timeOptions.minute = this.props.date.getMinutes();
+ timeOptions.hour = moment(this.props.date).hour();
+ timeOptions.minute = moment(this.props.date).minute();
56
}
57
const { action: timeAction, hour, minute } = await TimePickerAndroid.open(timeOptions);
58
if (timeAction !== TimePickerAndroid.dismissedAction) {
0 commit comments