473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 1511
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: James Curran | last post by:
I'd like to make the following proposal for a new feature for the C# language. I have no connection with the C# team at Microsoft. I'm posting it here to gather input to refine it, in an "open...
32
by: James Curran | last post by:
I'd like to make the following proposal for a new feature for the C# language. I have no connection with the C# team at Microsoft. I'm posting it here to gather input to refine it, in an "open...
28
by: Andre | last post by:
Hi, Does anyone know whether the ECMA, or an other standard document, specifies a maximum for the value that can be pass to the setTimeOut() function in Javascript? Andre
0
by: joe | last post by:
javascript updated textbox content can't be retrieved by server side When i call a javascript to update a asp:textbox content say, document.getElementByID('textboxname').value = 'abc' Then submit...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.