How equality works in cljs-time
masterStandard equality in Google Closure goog.date.* (and plain JavaScript Date objects) does not work the same way as in Joda/clj-time. Two date objects representing the same instant are not considered equal by default.
To perform equality checks, you have two options:
- Use
cljs-time.core/=. - Require the
cljs-time.extendnamespace, which extendsgoog.date.*datatypes so that standardclojure.core/=works as expected.