Fixed issue #329 - Pending event time after 22:59 jumps back to 22:59.

This commit is contained in:
Martin Edenhofer 2016-12-13 23:43:46 +01:00
parent f79f6634ee
commit c3f338db02

View file

@ -838,7 +838,7 @@
minute = 59; minute = 59;
} }
if (hour >= this.maxHours) { if (hour > this.maxHours) {
// No day/date handling. // No day/date handling.
hour = this.maxHours - 1; hour = this.maxHours - 1;
} }
@ -859,7 +859,7 @@
} else if (hour < 12 && timeMode === 2) { } else if (hour < 12 && timeMode === 2) {
hour += 12; hour += 12;
} else { } else {
if (hour >= this.maxHours) { if (hour > this.maxHours) {
hour = this.maxHours - 1; hour = this.maxHours - 1;
} else if ((hour < 0) || (hour === 12 && timeMode === 1)){ } else if ((hour < 0) || (hour === 12 && timeMode === 1)){
hour = 0; hour = 0;