Article View: comp.lang.javascript
Article #190Re: JavaScript date formatting with Linux Netscape
From: Dr John Stockton
Date: Thu, 20 Jul 2000 00:00
Date: Thu, 20 Jul 2000 00:00
58 lines
3320 bytes
3320 bytes
JRS: In article <IaEea7BMmjd5EwEJ@merlyn.demon.co.uk> of Thu, 20 Jul 2000 00:28:12 seen in news:comp.lang.javascript, Dr John Stockton <jrs@merlyn.demon.co.uk> wrote: >JRS: In article <m31z0qz0gh.fsf@funland.helsinki.sonera.fi> of Wed, 19 >Jul 2000 13:58:06 seen in news:comp.lang.javascript, Otto J. Makela ><om@iki.fi> wrote: >>Dr John Stockton <jrs@merlyn.demon.co.uk> writes: >>> See whether <URL: http://www.merlyn.demon.co.uk/jswkcalc.htm> can be >>> added to that list! >> >>Your page works a bit better, but not in the functions which I need, >>since the data box on your page ends up as being: >>-- >>According to the displaying computer >> >>Page displayed on Wed 2000-07-19 at civil time 13:18:10. >> ... >>lastModified = undefined NaN-0NaN-0NaN 0NaN:0NaN:0NaN UTC > >That lastModified looks to me as if the server did not transfer a good >lastModified date to you. > >I revised the page today, in the light of increased knowledge, so it >should at least give a more sensible message; take another look. I'll >recheck myself from the Demon server (I normally test locally) too, next >time I connect. I have just done that test, at about 0030h BST today, Thurs 20th. I got : Page displayed on Thu 2000-07-20 at civil time 00:29:05. The Timezone Offset is -60 minutes. The ISO-8601 Week Number is 2000-29 (day 4). getHours = 0 getUTCHours = 23 toString = Thu Jul 20 00:29:05 UTC+0100 2000 toUTCString = Wed, 19 Jul 2000 23:29:05 UTC toGMTString = Wed, 19 Jul 2000 23:29:05 UTC toLocaleString = 07/20/2000 00:29:05 document.lastModified: 07/18/00 17:22:20 Last Modified at Tue 2000-07-18 17:22:20 UTC That seems completely OK - logging on this PC shows that the file was uploaded at 18:22 BST yesterday - EXCEPT that lastModified is a day out. I seem to recollect some discussion of an obscure bug, possibly that, in some part of the server's software; I'm cross-posting to a group where someone may recall what the bug was, or be otherwise able to comment. -- � John Stockton, Surrey, UK. jrs@merlyn.demon.co.uk Turnpike v4.00 MIME. � Web <URL: http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms PAS, EXE in <URL: http://www.merlyn.demon.co.uk/programs/> - see 00index.txt. Dates - miscdate.htm moredate.htm jswkcalc.htm pas-time.htm critdate.htm &c.
Technical Details
Message-ID:
<saGX6HCE9jd5Ewgq@merlyn.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<m3vgy3oals.fsf@funland.helsinki.sonera.fi> <LDxOMaAb9Kd5Ew0P@merlyn.demon.co.uk> <m31z0qz0gh.fsf@funland.helsinki.sonera.fi> <IaEea7BMmjd5EwEJ@merlyn.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f76f2,640a3a91ce97bcb0,start X-Google-Attributes: gidf76f2,public X-Google-Thread: fb3cb,f7635c98973ee01c X-Google-Attributes: gidfb3cb,public From: Dr John Stockton <jrs@merlyn.demon.co.uk> Subject: Re: JavaScript date formatting with Linux Netscape Date: 2000/07/20 Message-ID: <saGX6HCE9jd5Ewgq@merlyn.demon.co.uk> X-Deja-AN: 648507014 Content-Transfer-Encoding: 8bit X-NNTP-Posting-Host: merlyn.demon.co.uk:158.152.233.145 References: <m3vgy3oals.fsf@funland.helsinki.sonera.fi> <LDxOMaAb9Kd5Ew0P@merlyn.demon.co.uk> <m31z0qz0gh.fsf@funland.helsinki.sonera.fi> <IaEea7BMmjd5EwEJ@merlyn.demon.co.uk> Content-Type: text/plain;charset=iso-8859-1 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 964075464 nnrp-12:1141 NO-IDENT merlyn.demon.co.uk:158.152.233.145 Organization: Home, 'Surrey', UK MIME-Version: 1.0 Newsgroups: comp.lang.javascript,demon.homepages.authoring