Show 00:00, not 24:00

SVN revision: 15823
This commit is contained in:
sebastid 2005-07-19 11:07:18 +00:00 committed by sebastid
parent dfed003f00
commit 2977b96cd1
1 changed files with 32 additions and 34 deletions

View File

@ -249,9 +249,7 @@ group {
isAfternoon = 0;
v = hour;
if (hour >= 12 && hour < 24) { isAfternoon = 1; }
if (digitalStyle == DIGITAL_STYLE_24HOUR) {
if (v == 0) { v = 24; }
} else {
if (digitalStyle == DIGITAL_STYLE_NORMAL) {
v = (v % 12);
if (v == 0) { v = 12; }
}