From 22c9ecac7a4ddea3b1175e9e8cc7023fbf5219f3 Mon Sep 17 00:00:00 2001 From: burczu Date: Mon, 15 May 2023 09:50:41 +0200 Subject: [PATCH] date format added to the moment constructor --- src/components/CalendarPicker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CalendarPicker/index.js b/src/components/CalendarPicker/index.js index 0137d6dfd531..00da8492ac00 100644 --- a/src/components/CalendarPicker/index.js +++ b/src/components/CalendarPicker/index.js @@ -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) {