# Clock Showing Server Time and Different Time Zones

**URL:** <https://forum.kirupa.com/t/clock-showing-server-time-and-different-time-zones/238525>\
**Category:** Uncategorized\
**Created:** [September 12, 2007, 10:45am UTC](https://forum.kirupa.com/t/clock-showing-server-time-and-different-time-zones/238525 "2007-09-12T10:45:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lovejeet](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@lovejeet](https://forum.kirupa.com/u/lovejeet)\
**Post date:** [September 12, 2007, 10:45am UTC](https://forum.kirupa.com/t/clock-showing-server-time-and-different-time-zones/238525/1 "2007-09-12T10:45:47Z")

</div>

Hey all,  
I have a clock that shows time according to local pc time but i want it to show according to the server. I have referred to all the Forum threads for the same but couldn’t get it done. Is there any server side script to be written…if yes i can’t cause i don’t know any sever side scripts.I M a Designer and not a Programmer yet i can do action scripting a bit…if anyone can help please thanks in advance  
whenever i change the time on my pc the time displayed gets changed.

Here’s the code:  
MyDate = new Date();  
hours = MyDate.getHours();  
minutes = MyDate.getMinutes();  
seconds = MyDate.getSeconds();  
hourAdjust = 0;  
hours = hours+hourAdjust;  
if (hours\>24) {  
hours = 0+(hours-24);  
} else if (hours\<0) {  
hours = 24+hours;  
}  
tellTarget (“hours”) {  
\_rotation = ((…/:hours_30)+(…/:minutes_.5));  
}  
tellTarget (“minutes”) {  
\_rotation = ((…/:minutes_6)+(…/:seconds_.1));  
}

tellTarget (“seconds”) {  
\_rotation = (…/:seconds\*6);  
}

gotoAndPlay(1);

Also can we pass an external value for .getHours(); syntax from an html?

Please help it urgent…
