Carmine appender: reconstitute :instant as Date rather than Long

This commit is contained in:
Peter Taoussanis 2013-12-02 16:01:48 +07:00
parent 8e5329e79f
commit 2a303ef2af

View File

@ -101,7 +101,7 @@
(partition 2) ; Reconstitute :level, :instant keys: (partition 2) ; Reconstitute :level, :instant keys:
(reduce (fn [v [entry-hash score]] (reduce (fn [v [entry-hash score]]
(conj v {:level level (conj v {:level level
:instant (car/as-long score) :instant (java.util.Date. (-> score car/as-long long))
:hash entry-hash})) :hash entry-hash}))
[])) []))