From 96d9ea3840626f71efe38018b75748d8338565fa Mon Sep 17 00:00:00 2001
From: Florian Dold <florian@dold.me>
Date: Fri, 26 May 2023 13:52:00 +0200
Subject: taler-util,wallet-core: make AbsoluteTime opaque

---
 packages/exchange-backoffice-ui/src/handlers/InputDate.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/exchange-backoffice-ui/src/handlers/InputDate.tsx')

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) => {
-- 
cgit v1.2.3

