Skip to content

Commit 73cba74

Browse files
committed
Merge branch 'master' of github.com:clojure/clojurescript
2 parents afe2cf7 + fa4b8d8 commit 73cba74

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10288,7 +10288,7 @@ reduces them without incurring seq initialization"
1028810288
ns)))]
1028910289
(write-all writer
1029010290
"#inst \""
10291-
(str (.getUTCFullYear obj)) "-"
10291+
(normalize (.getUTCFullYear obj) 4) "-"
1029210292
(normalize (inc (.getUTCMonth obj)) 2) "-"
1029310293
(normalize (.getUTCDate obj) 2) "T"
1029410294
(normalize (.getUTCHours obj) 2) ":"

src/test/cljs/cljs/core_test.cljs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,10 @@
18101810
(is (= :/ (keyword "/")))
18111811
(is (= (hash :/) (hash (keyword "/")))))
18121812

1813+
(deftest test-cljs-3263
1814+
(is (= "#inst \"0985-04-12T23:20:50.520-00:00\"" (pr-str #inst "0985-04-12T23:20:50.520-00:00")))
1815+
(is (= "#inst \"1970-12-18T23:20:50.520-00:00\"" (pr-str #inst "1970-12-18T23:20:50.520-00:00"))))
1816+
18131817
(deftest test-cljs-3270
18141818
(is (== 10 (count (range 0 (+ 1 (/ 9)) (/ 9))))))
18151819

0 commit comments

Comments
 (0)