To get this to work with the ring intermediate format, do this using the joda-time-writer function sent by David J.
(defn wrap-format [handler] (let [transit-opts {:handlers {org.joda.time.DateTime joda-time-writer}}] (wrap-restful-format handler {:response-options {:transit-json transit-opts :transit-messagepack transit-opts}})))
source share