1
這是15:51這裏。unparse js日期到本地時間字符串通過cljs-time
那麼,在UTF是13:51。我試圖在cljs-time library的幫助下解開當前的當地時間。
這裏的非本地方法:
(require [cljs-time.format :as tf]
[cljs-time.coerce :as tc])
(tf/unparse (tf/formatter "HH") (tc/from-date (js/Date.)))
;; 13
不幸的是以下產生相同的結果,而不是所期望的15:
(tf/unparse-local (tf/formatter-local "HH") (tc/from-date (js/Date.)))
有誰知道,這是怎麼回事呢?