Update app.js

This commit is contained in:
det-fys 2020-11-13 18:32:13 +01:00 committed by GitHub
parent f7d72d17fa
commit f5afc023f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
app.js
View File

@ -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;
}