andrewmcveigh / cljs-time

A clj-time inspired date library for clojurescript.
342 stars 57 forks source link

Not parsing date in week of yearweek format correctly #118

Closed shen-tian closed 6 years ago

shen-tian commented 6 years ago

Example code:

(let [fmt (time-format/formatter "xxxx-'W'ww")]
  (->> "2017-W45"
       (time-format/parse fmt)
       (time-format/unparse fmt)))
=> "1900-W01"

Think the unparse part works fine, but parsing code making something nil somewhere.

Using version 0.5.0