forked from enlightenment/enlightenment
fix so midnight is displayed as 12, not 0 :)
SVN revision: 5930
This commit is contained in:
parent
4acc6e93c5
commit
4f595ff6db
|
@ -21,7 +21,8 @@ function clock_update(object data, number val){
|
||||||
string seconds = String.copySection(time,6,8);
|
string seconds = String.copySection(time,6,8);
|
||||||
string timeofday = "AM";
|
string timeofday = "AM";
|
||||||
|
|
||||||
if(hour>12){
|
if(hour==0) hour = 12;
|
||||||
|
else if(hour>12){
|
||||||
timeofday = "PM";
|
timeofday = "PM";
|
||||||
hour = hour - 12;
|
hour = hour - 12;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue