makes cloud search possible.
This commit is contained in:
@@ -14,9 +14,16 @@
|
||||
|
||||
(def normal-date "MM/dd/yyyy")
|
||||
(def iso-date "yyyy-MM-dd")
|
||||
(def solr-date "yyyy-MM-dd'T'HH:mm:ss'Z'")
|
||||
|
||||
(def standard-time "MM/dd/yyyy hh:mm aa")
|
||||
|
||||
(defn parse-utc [v format]
|
||||
(try
|
||||
(f/parse (f/formatter format) v)
|
||||
(catch Exception _
|
||||
nil)))
|
||||
|
||||
(defn parse [v format]
|
||||
(try
|
||||
(time/from-time-zone (f/parse (f/formatter format) v)
|
||||
|
||||
Reference in New Issue
Block a user