forked from enlightenment/enlightenment
ok, i think we're done with the stupid mistakes here :) (i hope so)
SVN revision: 5933
This commit is contained in:
parent
55f5d03b2f
commit
3f4ec34adf
|
@ -22,11 +22,10 @@ function clock_update(object data, number val){
|
||||||
string timeofday = "AM";
|
string timeofday = "AM";
|
||||||
|
|
||||||
if(hour > 12 || hour==12){
|
if(hour > 12 || hour==12){
|
||||||
/* if(hour >= 12){*/
|
|
||||||
timeofday = "PM";
|
timeofday = "PM";
|
||||||
hour -= 12;
|
hour -= 12;
|
||||||
}
|
}
|
||||||
else if(hour==0) hour = 12;
|
if(hour==0) hour = 12;
|
||||||
|
|
||||||
data.setText(""+hour+" "+min+" "+seconds+" "+timeofday);
|
data.setText(""+hour+" "+min+" "+seconds+" "+timeofday);
|
||||||
epp.addTimer("clockTimer",0.5,"clock_update",0,data);
|
epp.addTimer("clockTimer",0.5,"clock_update",0,data);
|
||||||
|
|
Loading…
Reference in New Issue