mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
📎 Add missing IEquiv implementation for luxon DateTime type
This commit is contained in:
parent
3f97b3a112
commit
3986543293
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user