470,596 Members | 1,639 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

Javascript Wanted "last updated on ......"

Hi,

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?

TIA

--
RV
--

Jul 23 '05 #1
2 1384
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.
Jul 23 '05 #2
<snip>

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.

Thanks, I do realise that, the problem is, I need to keep a webpage
up-to-date within minutes (Not desperate but preferable).

This is why I required an automated update in any programming language,
although JavaScript seems the obvious choice. To save time .

Thanks all the same, probably will have to do it manually.

--
RV
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.