From 4106433650ca41e410f36a44b914cc9099a2c9b3 Mon Sep 17 00:00:00 2001 From: Allen Gilliland Date: Tue, 8 Mar 2016 17:03:56 -0800 Subject: [PATCH] fix up the identification of datetime fields in the `format-cell` function. --- src/metabase/pulse.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metabase/pulse.clj b/src/metabase/pulse.clj index 52603eb58e341..74ef4ff88c001 100644 --- a/src/metabase/pulse.clj +++ b/src/metabase/pulse.clj @@ -151,7 +151,7 @@ (defn- format-cell [value col] (cond - (instance? Date value) (format-timestamp (.getTime ^Date value) col) + (datetime-field? col) (format-timestamp (.getTime ^Date (u/->Timestamp value)) col) (and (number? value) (not (datetime-field? col))) (format-number value) :else (str value)))