mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 14:39:35 +00:00
🐛 Add handler to correctly encode cljs dates to json
This commit is contained in:
parent
991b26b73f
commit
c1b2aa7628
@ -426,3 +426,8 @@
|
|||||||
:encode/json format-duration
|
:encode/json format-duration
|
||||||
::oapi/type "string"
|
::oapi/type "string"
|
||||||
::oapi/format "duration"}})))
|
::oapi/format "duration"}})))
|
||||||
|
|
||||||
|
#?(:cljs
|
||||||
|
(extend-protocol cljs.core/IEncodeJS
|
||||||
|
js/Date
|
||||||
|
(-clj->js [x] x)))
|
||||||
Loading…
x
Reference in New Issue
Block a user