Skip to content

Commit

Permalink
Merge pull request #30923 from allroundexperts/fix-30871
Browse files Browse the repository at this point in the history
feat: replace more dates by parseISO
  • Loading branch information
puneetlath authored Nov 6, 2023
2 parents 2669845 + 66117be commit a17776d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DatePicker/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function DatePicker({value, defaultValue, label, placeholder, errorText, contain
/>
{isPickerVisible && (
<RNDatePicker
value={date ? new Date(date) : new Date()}
value={date ? parseISO(date) : new Date()}
mode="date"
onChange={setDate}
maximumDate={maxDate}
Expand Down

0 comments on commit a17776d

Please sign in to comment.