Permalink
Browse files

Fix get ms from joda datetime

  • Loading branch information...
1 parent ffc87d4 commit a0db808610aa954f3cd96f8d660e11eb565cdd72 @zk committed Nov 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/clj/nsfw/util.clj
View
2 src/clj/nsfw/util.clj
@@ -219,7 +219,7 @@
(defn ms [date]
(cond
(= java.util.Date (class date)) (.getTime date)
- (= org.joda.time.DateTime (class date)) (.getTime date)))
+ (= org.joda.time.DateTime (class date)) (.getMillis date)))
(defn timeago [date-or-ms]
(when date-or-ms

0 comments on commit a0db808

Please sign in to comment.