Permalink
Browse files

Specify a radix of 10 to js/parseInt so that it can parse 08 and 09 in

date literals
  • Loading branch information...
1 parent 280ea95 commit 3c34327e2a31c6d08244637e49c6b1e8a19e21bf @brentonashworth brentonashworth committed Jul 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cljs/cljs/reader.cljs
@@ -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"))

0 comments on commit 3c34327

Please sign in to comment.