Commit 0c44fba024ba912c1cb6cb7522f3faa46b23f274
1 parent
da95f797
Exists in
master
Colocando de volta o +1 e trocando o Match.round por Math.floor
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
recipes/copa2014/assets/counter.coffee
@@ -9,7 +9,7 @@ window._barrabrasil.copa_counter = () -> | @@ -9,7 +9,7 @@ window._barrabrasil.copa_counter = () -> | ||
9 | t = new Date() | 9 | t = new Date() |
10 | c = new Date(2014, 5, 12, 0, 0, 0) | 10 | c = new Date(2014, 5, 12, 0, 0, 0) |
11 | h = "" | 11 | h = "" |
12 | - e = String(Math.round(Math.abs((t.getTime() - c.getTime()) / (24 * 60 * 60 * 1000)))) | 12 | + e = String(Math.floor(Math.abs((t.getTime() - c.getTime()) / (24 * 60 * 60 * 1000))) + 1) |
13 | a = (e).split("") | 13 | a = (e).split("") |
14 | 14 | ||
15 | i = 0 | 15 | i = 0 |