2
0

🚸 (date) Improve date format storage

Make sure it matches what you see on the viewer to avoid confusion
This commit is contained in:
Baptiste Arnaud
2023-04-24 11:25:45 +02:00
parent 7385e3bbbf
commit 3529da210c
3 changed files with 3 additions and 6 deletions

View File

@ -24,10 +24,7 @@ export const DateForm = (props: Props) => {
if (inputValues().from === '' && inputValues().to === '') return
e.preventDefault()
props.onSubmit({
value: `${inputValues().from}${
props.options?.isRange ? ` to ${inputValues().to}` : ''
}`,
label: parseReadableDate({
value: parseReadableDate({
...inputValues(),
hasTime: props.options?.hasTime,
isRange: props.options?.isRange,