Skip to content

Commit

Permalink
fix up the identification of datetime fields in the format-cell fun…
Browse files Browse the repository at this point in the history
…ction.
  • Loading branch information
agilliland committed Mar 9, 2016
1 parent 14d82d9 commit 4106433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metabase/pulse.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 4106433

Please sign in to comment.