diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-02-27 21:59:54 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-02-27 21:59:54 +0100 |
commit | 083b58e0a40858e2277f4bd101ffd54097f01da0 (patch) | |
tree | 2e72e346ee6bd26b59d1234ef9bf5141f6680721 /src/mulk/benki/book_marx.clj | |
parent | 7c0b0313d1ac80e2e10c4b20e7f6a291b1ad7a56 (diff) |
Wiki: Format dates more readably.
Diffstat (limited to 'src/mulk/benki/book_marx.clj')
-rw-r--r-- | src/mulk/benki/book_marx.clj | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mulk/benki/book_marx.clj b/src/mulk/benki/book_marx.clj index 3fc7b32..1883f3f 100644 --- a/src/mulk/benki/book_marx.clj +++ b/src/mulk/benki/book_marx.clj @@ -16,8 +16,7 @@ [noir.response :as response] [noir.session :as session] hiccup.core) - (:import [org.jsoup Jsoup] - [java.text DateFormat])) + (:import [org.jsoup Jsoup])) (def bookmark_tags (cq/table :bookmark_tags)) (def bookmarks (cq/table :bookmarks)) @@ -80,10 +79,7 @@ (escape-html (:title mark))]] [:p {:class "bookmark-date-and-owner"} [:span {:class "bookmark-date"} - (escape-html - (.format - (DateFormat/getDateTimeInstance DateFormat/FULL DateFormat/FULL) - (:date mark)))] + (escape-html (format-date (:date mark)))] [:span {:class "bookmark-owner"} " by " (escape-html (:first_name mark))]] [:p {:class "bookmark-description"} (htmlize-description (:description mark))]])]])))) |