[LINK] If a clock ticks in a Klearphelled forest, ...
Tom Worthington
Tom.Worthington at tomw.net.au
Wed Apr 16 10:45:12 AEST 2008
At 08:19 AM 6/04/2008, Jon Seymour wrote:
> ... on the PC, the Windows system tray clock is correct but the
> time display on
>Age/SMH is still showing DST time ...
The SMH web site uses Javascript to calculate the time from the
user's computer system clock. Some such displays went wrong around
the year 2000, including the Australian Defence Department's Y2K
countdown clock <http://www.anu.edu.au/mail-archives/link/link0001/0009.html>.
The SMH web page calculates UTC from the local time and then Sydney
time from that. Exactly how they do this is in the code of the page,
but why they do this, rather than just inserting the time from their
server, is not clear.
The time does not update on the web page, it just shows whatever time
was calculated when the page was loaded. There is an adjustment for
daylight saving hardcoded.
There are times on the stories on the same page, but these are hard
coded in the HTML, not computed using Javascript and so may not match
the time at the top of the page.
Tom Worthington FACS HLM tom.worthington at tomw.net.au Ph: 0419 496150
Director, Tomw Communications Pty Ltd ABN: 17 088 714 309
PO Box 13, Belconnen ACT 2617 http://www.tomw.net.au/
Adjunct Senior Lecturer, ANU
More information about the Link
mailing list