Skip to content

Commit

Permalink
Merge pull request #1 from sawa-ko/patch-1
Browse files Browse the repository at this point in the history
fix: incorrect format for date input
  • Loading branch information
ivanfilhoz authored Sep 26, 2024
2 parents 37da607 + 47bc6eb commit 99d2ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/parseValueFromInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const parseValueFromInput = (
}

if (input.type === 'date') {
return input.valueAsDate?.toISOString() ?? null
return input.valueAsDate?.toISOString()?.split?.('T')?.[0] ?? null
}

return input.value
Expand Down

0 comments on commit 99d2ff0

Please sign in to comment.