Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Description

(inst? (java.time.ZonedDateTime/now)) => false

Seems incorrect, as {{ZonedDateTime}} has the necessary information.

Proposed Solution

Conversion between {{Instant}} and {{ZonedDateTime}} is lossless.

(extend-protocol clojure.core/Inst java.time.ZonedDateTime (inst-ms* [inst] (.toEpochMilli (.toInstant ^java.time.ZonedDateTime inst))))

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2466 (reported by alex+import)
...