0

Problem with Time

Hallo,

I have written a Script such like a timer:
the Endtime will be save on starting the tv.

If I press a button, this will happen:
But the problem is that I have all the time 1 houre to much see pic
CODE
					Starttime = new Date(getRealTime() * 1000);

Zeit.setTime((Endtime) - (Starttime));

Start.setTime (Starttime);

End.setTime (Endtime);

var Stundenstart = Start.getHours();
var Minutenstart = Start.getMinutes();
var Sekundenstart = Start.getSeconds();

var Stundenend = End.getHours();
var Minutenend = End.getMinutes();
var Sekundenend = End.getSeconds();

var Timestd = Zeit.getHours();
var Timemin = Zeit.getMinutes();
var Timesec = Zeit.getSeconds();

this.owner.controls.start.setText("Start Std:" + Stundenstart + "Min:" + Minutenstart + "Sec: " + Sekundenstart);
this.owner.controls.end.setText("End Std:" + Stundenend + "Min:" + Minutenend + "Sec: " + Sekundenend);
this.owner.controls.uhr.setText("Zeit Std:" + Timestd + "Min:" + Timemin + "Sec: " + Timesec);
this.owner.controls.starttime.setText("Start:" + Start);
this.owner.controls.endtime.setText("Ende:" + End);




can somebody help me?

thx

by
0 Replies

Recent Posts

in General - Yahoo! TV Widgets