diff --git a/app.js b/app.js index 89ac040..26b65b5 100644 --- a/app.js +++ b/app.js @@ -31,8 +31,12 @@ function vypocitatCas(vojsl) { let min = d.getMinutes(); if (min > 25 && min < 55) { min = 0; - hod = hod == 23 ? 0 : hod + 1; - c = new Date(c.getDate() + 1); + if (hod == 23) { + hod = 0; + c = new Date(c.getDate() + 1); + } else { + hod++; + } } else { min = 30; }