From c1b2aa76280485877278ba6de083aa72978b3e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 25 Aug 2025 13:26:07 +0200 Subject: [PATCH] :bug: Add handler to correctly encode cljs dates to json --- common/src/app/common/time.cljc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/src/app/common/time.cljc b/common/src/app/common/time.cljc index 89358dfb78..62f5551589 100644 --- a/common/src/app/common/time.cljc +++ b/common/src/app/common/time.cljc @@ -426,3 +426,8 @@ :encode/json format-duration ::oapi/type "string" ::oapi/format "duration"}}))) + +#?(:cljs + (extend-protocol cljs.core/IEncodeJS + js/Date + (-clj->js [x] x))) \ No newline at end of file