Skip to content

Commit

Permalink
date format added to the moment constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
burczu committed May 24, 2023
1 parent 127a68a commit 22c9eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CalendarPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CalendarPicker extends React.PureComponent {
constructor(props) {
super(props);

const currentSelection = moment(props.value);
const currentSelection = moment(props.value, CONST.DATE.MOMENT_FORMAT_STRING);
let currentDateView = currentSelection.toDate();

if (props.selectedYear) {
Expand Down

0 comments on commit 22c9eca

Please sign in to comment.