Skip to content

Commit

Permalink
UDF #3 - Updating UserDefinedFieldsForm to store date in ISO8601 format
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Sep 26, 2022
1 parent 99c059f commit 4479cac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const UserDefinedFieldsForm: ComponentType<any> = (props: Props) => {
required={field.required}
>
<DatePicker
onChange={(date) => onChange(field, date && date.toString())}
onChange={(date) => onChange(field, date && date.toISOString())}
value={fieldValue && new Date(fieldValue)}
/>
</Form.Input>
Expand Down

0 comments on commit 4479cac

Please sign in to comment.