Permalink
Browse files

add hamburg zone

  • Loading branch information...
1 parent d64d0ce commit 9accd9449f492978b24009077a8d81e6f9757a0b @deduktion deduktion committed Sep 21, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/clj_hh/utils/time.clj
@@ -5,6 +5,8 @@
(:import
[org.joda.time DateTime]))
+(def hamburg-zone (date/time-zone-for-id "Europe/Berlin"))
+
(defn timestamp->date-time
[ts]
(DateTime. ts))
@@ -21,10 +23,10 @@
(defn render-day
[d]
- (-> (:date format/formatters)
+ (-> (:date (format/with-zone format/formatters hamburg-zone))
(format/unparse d)))
(defn render-time
[d]
- (-> (:hour-minute format/formatters)
+ (-> (:hour-minute (format/with-zone format/formatters hamburg-zone))
(format/unparse d)))

0 comments on commit 9accd94

Please sign in to comment.