Strona 1 z 1

Zegar tarczowy .getUTC nie dziala

: śr sty 07, 2009 10:57 pm
autor: bolszo
Witam,

Mam problem. Próbuje zrobić zegar pokazujący czas z danej strefy czasowej (konkretnie naszej strefy). Wiem, że w tym celu można użyć kodu .getUTC i tak właśnie robię. Problem w tym, że wszystko działa kiedy robię "Test Movie" w programie natomiast po exporcie lub na stronie www zegar pobiera czas z komputera użytkownika. Proszę o pomoc.
Dziękuje.

Oto mój kod.

time=new Date(); // time object
minutes = time.getUTCMinutes()
hours = time.getUTCHours()

hours = hours +(minutes/60);
hours = hours +1;

minutes = minutes*6; // calculating minutes
hours = hours*30; // calculating hours

minute_hand._rotation=minutes; // giving rotation property
hour_hand._rotation=hours; // giving rotation property