cljs-time
cljs-time copied to clipboard
Year from an instant gets mis-parsed: 2018 becomes 118
(timec/year (timec/from-utc-time-zone (js/Date.))) ; =>118
I think this is because your js/Date
is a javascript date, not a goog.date
one, and the getYear function for js/Date
has this issue.
(-> (js/Date.) (.getYear)) ; => 118
(-> (timec/now) timec/from-utc-time-zone timec/year) ; => 2018