Skip to content
Browse files

changed get hour logic

  • Loading branch information...
1 parent 800c2a4 commit 0f7eae12e0d45f504924780a106b5050a8e219a3 @jittakal jittakal committed with Jan 13, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 src/log2json/linee.clj
  2. +3 −3 src/log2json/lines.clj
View
6 src/log2json/linee.clj
@@ -41,9 +41,9 @@
""
[]
(let [hour (.get (Calendar/getInstance) (Calendar/HOUR_OF_DAY))]
- (if (= hour 24)
- hour
- (inc hour))))
+ (if (= hour 00)
+ (inc hour)
+ hour)))
(defn init-hours
View
6 src/log2json/lines.clj
@@ -37,9 +37,9 @@
""
[]
(let [hour (.get (Calendar/getInstance) (Calendar/HOUR_OF_DAY))]
- (if (= hour 24)
- hour
- (inc hour))))
+ (if (= hour 00)
+ (inc hour)
+ hour)))
(defn init-hours

0 comments on commit 0f7eae1

Please sign in to comment.
Something went wrong with that request. Please try again.