Skip to content
Snippets Groups Projects
Commit 432929ec authored by Simon Belak's avatar Simon Belak
Browse files

Add type hint

parent e5dd6077
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,8 @@
[puppetlabs.i18n.core :as i18n :refer [tru trs]]
[ring.util.codec :as codec]
[schema.core :as s]
[toucan.db :as db]))
[toucan.db :as db])
(:import java.util.TimeZone))
(def ^:private public-endpoint "/auto/dashboard/")
......@@ -914,7 +915,7 @@
(defn- humanize-datetime
[dt unit]
(let [dt (date/str->date-time dt)
tz (-> date/jvm-timezone deref .getID)
tz (-> date/jvm-timezone deref ^TimeZone .getID)
unparse-with-formatter (fn [formatter dt]
(t.format/unparse
(t.format/with-zone
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment