# \_Multiple\_clock\_block\_issue

**URL:** https://forum.kirupa.com/t/-multiple-clock-block-issue/214999
**Category:** flash
**Created:** [February 2, 2007, 7:51pm UTC](https://forum.kirupa.com/t/-multiple-clock-block-issue/214999 "2007-02-02T19:51:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tillie](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tillie](https://forum.kirupa.com/u/Tillie)
#### Post date: [February 2, 2007, 7:51pm UTC](https://forum.kirupa.com/t/-multiple-clock-block-issue/214999/1 "2007-02-02T19:51:44Z")

</div>

hey people!

i have an issue regarding as said…multiple clocks  
i want to do several time boxes for my site, displaying for ex.time in Zagreb, New York, Sydney, Tokyo etc.

here’s my code::

[COLOR=navy]time=new Date(); [/COLOR]  
[COLOR=navy]var seconds = time.getSeconds()[/COLOR]  
[COLOR=navy]var minutes = time.getMinutes()[/COLOR]  
[COLOR=navy]var hours = time.getHours()[/COLOR]

[COLOR=navy]if(minutes\<10) {[/COLOR]  
[COLOR=navy]minutes = “0” + minutes; }[/COLOR]  
[COLOR=navy]if(seconds\<10) {[/COLOR]  
[COLOR=navy]seconds = “0” + seconds; }[/COLOR]

[COLOR=navy]zagrebTime.text = hours + “:” + minutes + “:” + seconds;[/COLOR]  
[COLOR=navy]tokyoTime.text = [hours+8] + “:” + minutes + “:” + seconds; [/COLOR]  
[COLOR=navy]sydneyTime.text = [hours+10] + “:” + minutes + “:” + seconds; [/COLOR]  
[COLOR=navy]newyorkTime.text = [hours-6] + “:” + minutes + “:” + seconds; [/COLOR]

[COLOR=black]sydney and tokyo always go beyond 24…so that means now would be around 30:54:03 in sydney…[/COLOR]  
how do i fix that?

thank you in advanced  
t.
