Hi. I'm making a theme, where I use a clock widget. But the widget is just saying that the clock is 88:88... Can someone take a minute to check the .HTML file?
is this clock in 12 or 24 hour format? i looked at your code and the code for my HTC ClockCal i released on cydia. the only real difference i saw in the code was that yours had this in it:
function dotime(){
theTime=setTimeout('dotime()',1000);
d = new Date();
hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
tot=''+hr+mn+se;
and mine reads: function dotime(){
theTime=setTimeout('dotime()',1000);
d = new Date();
hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
if(hr==100){hr=112;am_pm='am';}
else if(hr<112){am_pm='am';}
else if(hr==112){am_pm='pm';}
else if(hr>112){am_pm='pm';hr=(hr-12);}
tot=''+hr+mn+se;
but mine is 12 hour format. i see you are in sweden so yours i am assuming is 24 hour format? i remember having the 88:88 problem when i was first making mine too. don't remember what i did to get out of it.
maybe try my code but see if changing this line else if(hr>112){am_pm='pm';hr=(hr-12);}
to
else if(hr>112){am_pm='pm';hr=(hr-24);}
does the trick
Last edited by candymanmike; 02-21-2010 at 11:56 AM.