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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roy Veevers

    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
    --



  • Dr John Stockton

    #2
    Re: Javascript Wanted "last updated on ......"

    JRS: In article <c5dsvl$4ud$1@n ewsg1.svr.pol.c o.uk>, seen in
    news:comp.lang. javascript, Roy Veevers <rveevers@hotma il.com> posted at
    Mon, 12 Apr 2004 12:02:14 :[color=blue]
    >
    >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?[/color]

    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.lastMo dified 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.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
    <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

    Comment

    • Roy Veevers

      #3
      Re: Javascript Wanted &quot;last updated on ......&quot;

      <snip>

      The reliable way is to edit the date and time, for your preferred[color=blue]
      > localisation, as plain old HTML text, whenever you make a significant
      > change.[/color]


      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


      Comment

      Working...