timestamps converted to unix timestamps

This commit is contained in:
Christian Mueller
2014-03-26 22:01:18 +01:00
parent 155bdaa156
commit ad97dad583
2 changed files with 11 additions and 8 deletions
+5 -2
View File
@@ -128,8 +128,11 @@
[:h3.central-element.helvetica statistics]
[:table#stats.helvetica.central-element
(map
#(when (% stats)
[:tr [:td (str (get-message %) ":")] [:td (% stats)]])
#(when-let [v (% stats)]
[:tr
[:td (str (get-message %) ":")]
[:td (if (or (= % :published) (= % :edited))
(str (java.util.Date. (Long/parseLong v))) v)]])
[:published :edited :publisher :views])]))))
(GET "/:year/:month/:day/:title/edit" [year month day title]
+1 -1
View File
@@ -24,7 +24,7 @@
~@body)))
(defn get-current-date []
(str (java.util.Date.)))
(.getTime (java.util.Date.)))
(defn valid-publisher? [pid]
(= 1 (redis :hexists :publisher-key pid)))