Skip to content

Commit

Permalink
Fix get ms from joda datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
zk committed Nov 13, 2013
1 parent ffc87d4 commit a0db808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/nsfw/util.clj
Expand Up @@ -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
Expand Down

0 comments on commit a0db808

Please sign in to comment.