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
(cherry picked from commit a17776d)
  • Loading branch information
puneetlath authored and OSBotify committed Nov 6, 2023
1 parent c41783f commit 11f393f
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 11f393f

Please sign in to comment.