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

Correctly handle JodaTime [ci all]

parent 82c591b2
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,8 @@
[metabase.util.date :as du]
[puppetlabs.i18n.core :as i18n :refer [trs]]
[redux.core :as redux])
(:import com.clearspring.analytics.stream.cardinality.HyperLogLogPlus))
(:import com.clearspring.analytics.stream.cardinality.HyperLogLogPlus
org.joda.time.DateTime))
(defn col-wise
"Apply reducing functinons `rfs` coll-wise to a seq of seqs."
......@@ -157,6 +158,7 @@
nil (->date [_] nil)
String (->date [this] (-> this du/str->date-time t.coerce/to-date))
java.util.Date (->date [this] this)
DateTime (->date [this] (t.coerce/to-date this))
Long (->date [^Long this] (java.util.Date. this)))
(deffingerprinter :type/DateTime
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment