diff options
Diffstat (limited to 'packages/exchange-backoffice-ui/src/handlers/InputDate.tsx')
-rw-r--r-- | packages/exchange-backoffice-ui/src/handlers/InputDate.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/exchange-backoffice-ui/src/handlers/InputDate.tsx b/packages/exchange-backoffice-ui/src/handlers/InputDate.tsx index e834b6cdb..1fd81aad9 100644 --- a/packages/exchange-backoffice-ui/src/handlers/InputDate.tsx +++ b/packages/exchange-backoffice-ui/src/handlers/InputDate.tsx @@ -18,9 +18,9 @@ export function InputDate<T extends object, K extends keyof T>( converter={{ //@ts-ignore fromStringUI: (v): AbsoluteTime => { - if (!v) return { t_ms: "never" }; + if (!v) return AbsoluteTime.never(); const t_ms = parse(v, pattern, Date.now()).getTime(); - return { t_ms }; + return AbsoluteTime.fromMilliseconds(t_ms); }, //@ts-ignore toStringUI: (v: AbsoluteTime) => { |