Skip to content

Commit

Permalink
Change how multi formatter is built to resolve parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Feb 4, 2012
1 parent 95bcbbe commit 06eed27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/clj_time/format.clj
Expand Up @@ -47,8 +47,7 @@
(let [printer (.getPrinter (formatter fmts dtz))
parsers (map #(.getParser (formatter % dtz)) (cons fmts more))]
(-> (DateTimeFormatterBuilder.)
(.append printer)
(.append nil (into-array DateTimeParser parsers))
(.append printer (into-array DateTimeParser parsers))
(.toFormatter)))))

(defn with-chronology
Expand Down

0 comments on commit 06eed27

Please sign in to comment.