Hi there,
I need to make a world clock to put on a website. At the moment, I have a JavaScript clock where the user can select a time zone from a drop down menu and the digital clock changes accordingly.
The problem is daylight saving time. Different countries change their time on different dates, the date is different every year, and some countries don'd do daylight saving at all. This makes it a nightmare to update.
Does making a clock that uses the server time make updating easier? If so, can you recommend any tutorials that will explain how I can do this?
Finally, is it better to get the time from another site? I a will be putting this on an intranet, which blocks a lot of external content. I tried using the code on this page:
But got an error message. Not sure if this is because I'm on an intranet or what?!
Any help would be much appreciated.
Many thanks,
Katie
I need to make a world clock to put on a website. At the moment, I have a JavaScript clock where the user can select a time zone from a drop down menu and the digital clock changes accordingly.
The problem is daylight saving time. Different countries change their time on different dates, the date is different every year, and some countries don'd do daylight saving at all. This makes it a nightmare to update.
Does making a clock that uses the server time make updating easier? If so, can you recommend any tutorials that will explain how I can do this?
Finally, is it better to get the time from another site? I a will be putting this on an intranet, which blocks a lot of external content. I tried using the code on this page:
But got an error message. Not sure if this is because I'm on an intranet or what?!
Any help would be much appreciated.
Many thanks,
Katie