JRS: In article <c5**********@newsg1.svr.pol.co.uk>, seen in
news:comp.lang.javascript, Roy Veevers <rv******@hotmail.com> posted at
Mon, 12 Apr 2004 12:02:14 :
Need to run a script "last updated on" on a personal Website. Problem is the
ones I can find rely on my servers synchronised time! This is one hour
behind the correct time (Summertime) at my location. Anyone know of a script
that can be modified so that the correct local time is displayed?
See the newsgroup FAQ, and <URL:
http://www.merlyn.demon.co.uk/js-
date3.htm#lM>.
Your Web server *should* be keeping UTC/GMT, and should know nothing of
the user's local time. Since your news header indicates UK, in winter
that looks like UK civil time; but the equality is only numeric.
Unless you are careful, some browsers or readers may misinterpret the
misbegotten document.lastModified string.
The reliable way is to edit the date and time, for your preferred
localisation, as plain old HTML text, whenever you make a significant
change.
--
© 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> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.