diff options
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/home.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/home.cgi b/cgi/home.cgi index 3e8aeeb..ec600a0 100644 --- a/cgi/home.cgi +++ b/cgi/home.cgi @@ -51,7 +51,7 @@ def graphic_collection(resp) events = Array.new(28) { "empty" } resp.each { |coll| - days = ((Time.parse(coll["nextCollection"]) - Time.now) / (60*60*24)).ceiling + days = ((Time.parse(coll["nextCollection"]) - Time.now) / (60*60*24)).ceil events[days*2] = coll["service"].downcase events[days*2 - 1] = coll["service"].downcase } |