diff --git a/src/monger/joda_time.clj b/src/monger/joda_time.clj new file mode 100644 index 0000000..ceae374 --- /dev/null +++ b/src/monger/joda_time.clj @@ -0,0 +1,12 @@ +(ns monger.joda-time + (:import (org.joda.time DateTime DateTimeZone)) + (:use [monger.conversion])) + +;; +;; API +;; + +(extend-protocol ConvertToDBObject + org.joda.time.DateTime + (to-db-object [^org.joda.time.DateTime input] + (to-db-object (.toDate input))))