diff --git a/src/lambdaisland/plenish.clj b/src/lambdaisland/plenish.clj index ff147c0..633dee1 100644 --- a/src/lambdaisland/plenish.clj +++ b/src/lambdaisland/plenish.clj @@ -192,7 +192,7 @@ :db.type/keyword (str (when (qualified-ident? value) (str (namespace value) "/")) (name value)) - :db.type/instant [:raw (format "to_timestamp(%.3f)" (double (/ (.getTime ^java.util.Date value) 1000)))] + :db.type/instant [:raw (format "epoch_ms(%d)" (inst-ms value))] value)) ;; The functions below are the heart of the process