JRS: In article <3a*************************@posting.google.com> , seen
in news:comp.lang.javascript, john <jb*****@gtcocalcomp.com> posted at
Tue, 2 Sep 2003 09:00:46 :-
Is it possible to display the current time directly from the server,
and not client-side...I have people in different time zones trying to
view the same page and the times (based on client) are coming up
different.
I expect so.
With php or asp or whatever, you might write the server time into the
page before service, and read it with javascript after service, noting
the difference between it and the user clock.
OTOH, if you can assume either that the clients are correctly set for
their localities, you can in pure javascript use the GMT/UTC time
functions.
For any application using different zones, GMT should be used as the
prime date/time record.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.