By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,958 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
<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.