Skip to content

Commit

Permalink
Specify a radix of 10 to js/parseInt so that it can parse 08 and 09 in
Browse files Browse the repository at this point in the history
date literals
  • Loading branch information
Brenton Ashworth committed Jul 8, 2012
1 parent 280ea95 commit 3c34327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/cljs/reader.cljs
Expand Up @@ -483,7 +483,7 @@ nil if the end of stream has been reached")
(->> V
(map #(update-in %2 [0] %)
[(constantly nil) #(if (= % "-") "-1" "1")])
(map (fn [v] (map #(js/parseInt %) v))))
(map (fn [v] (map #(js/parseInt % 10) v))))
offset (* offset-sign (+ (* offset-hours 60) offset-minutes))]
[(if-not years 1970 y)
(if-not months 1 (check 1 mo 12 "timestamp month field must be in range 1..12"))
Expand Down

0 comments on commit 3c34327

Please sign in to comment.