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:
parent
3f97b3a112
commit
3986543293
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue