diff --git a/manifest.appcache b/manifest.appcache index 577fdf4..201ee99 100644 --- a/manifest.appcache +++ b/manifest.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# 6.2 +# 6.2.1 COPYING README.md diff --git a/uhr-en.js b/uhr-en.js index fd5f344..4ababd1 100644 --- a/uhr-en.js +++ b/uhr-en.js @@ -71,7 +71,7 @@ var layout = { "getHour": function(date) { var hour = date.getHours(); if (date.getMinutes() >= 35) { - return hour + 1; + return (hour + 1) % 24; } return hour; } diff --git a/uhr-fr.js b/uhr-fr.js index bf19885..cf0bbce 100644 --- a/uhr-fr.js +++ b/uhr-fr.js @@ -1,3 +1,4 @@ + /* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -72,7 +73,7 @@ var layout = { "getHour": function(date) { var hour = date.getHours(); if (date.getMinutes() >= 35) { - return hour + 1; + return (hour + 1) % 24; } return hour; } diff --git a/uhr-it.js b/uhr-it.js index 26ad717..6666a0a 100644 --- a/uhr-it.js +++ b/uhr-it.js @@ -70,7 +70,7 @@ var layout = { "getHour": function(date) { var hour = date.getHours(); if (date.getMinutes() >= 35) { - return hour + 1; + return (hour + 1) % 24; } return hour; } diff --git a/uhr.js b/uhr.js index 94e2280..21196a2 100644 --- a/uhr.js +++ b/uhr.js @@ -175,7 +175,7 @@ along with this program. If not, see . } var hour = date.getHours(); if (date.getMinutes() >= 25) { - return hour + 1; + return (hour + 1) % 24; } return hour; },