mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
📎 Add missing IEquiv implementation for luxon DateTime type
This commit is contained in:
parent
3f97b3a112
commit
3986543293
@ -45,6 +45,14 @@
|
|||||||
0
|
0
|
||||||
(if (< (inst-ms it) (inst-ms other)) -1 1)))))
|
(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
|
#?(:cljs
|
||||||
(extend-protocol cljs.core/Inst
|
(extend-protocol cljs.core/Inst
|
||||||
DateTime
|
DateTime
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user