Skip to content

Commit 2b9bccb

Browse files
committed
fix: Use getDate() instead of getDay()
1 parent c388fea commit 2b9bccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DateTimePickerModal.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class DateTimePickerModal extends React.PureComponent {
4646
} else if (this.state.currentMode === "time") {
4747
const year = this.currentDate.getFullYear();
4848
const month = this.currentDate.getMonth();
49-
const day = this.currentDate.getDay();
49+
const day = this.currentDate.getDate();
5050
const hours = date.getHours();
5151
const minutes = date.getMinutes();
5252
this.currentDate = new Date(year, month, day, hours, minutes);

0 commit comments

Comments
 (0)