0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-28 15:41:25 -05:00

📎 Add missing IEquiv implementation for luxon DateTime type

This commit is contained in:
Andrey Antukh 2024-01-24 20:34:32 +01:00
parent 3f97b3a112
commit 3986543293

View file

@ -45,6 +45,14 @@
0
(if (< (inst-ms it) (inst-ms other)) -1 1)))))
#?(:cljs
(extend-type DateTime
cljs.core/IEquiv
(-equiv [o other]
(and (instance? DateTime other)
(== (.valueOf o) (.valueOf other))))))
#?(:cljs
(extend-protocol cljs.core/Inst
DateTime