fix so midnight is displayed as 12, not 0 :)

SVN revision: 5930
This commit is contained in:
bdsabian 2002-02-13 08:12:47 +00:00 committed by bdsabian
parent 4acc6e93c5
commit 4f595ff6db
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ function clock_update(object data, number val){
string seconds = String.copySection(time,6,8);
string timeofday = "AM";
if(hour>12){
if(hour==0) hour = 12;
else if(hour>12){
timeofday = "PM";
hour = hour - 12;
}