LOL - Nowadays surely everone is coding in a Y2k compliant way!? WRONG
_______
From: cypherpunk@hotmail.com 13:08
Subject: Westergaard's Millenium Bug
I'm sure most people here are familiar with y2ktimebomb.com, the Westergaard web site. Last night I was reading one of their web pages in a text editor because I was on such a clunky old Unix machine that Netscape is barely usable. And I found something interesting.
Take a look at y2ktimebomb.com. The page starts with the usual kind of HTML header junk, then gets down to business with some Javascript junk:
<SCRIPT> mydate = new Date(); myday = mydate.getDay(); mymonth = mydate.getMonth(); myweekday= mydate.getDate(); weekday= myweekday; myyear= mydate.getYear(); year = myyear
Oh, I thought... they're doing date processing for no particularly good reason. I wonder... no, surely, not. They're one of the sites telling us about the perils of year-2000 bugs, they must have written this properly. They couldn't be writing non-compliant code.
Secure in the knowledge that the code would work perfectly in eighteen months time I scrolled further down.
if(mymonth == 0) month = "January " else if(mymonth ==1) month = "February " else if(mymonth ==2)
Blah, blah, blah... boy Javascript is a stoopid language if you have to do all this kind of stuff just to get the day and month.
And then...
Guess what...
Oh dear...
What did I find but:
<SCRIPT> document.write("<center><p align=center><font size=3 FACE=ARIAL,Helvetica>" + day + "<BR>" + month); document.write(myweekday + "<BR> 19" + year + "</font>"); </SCRIPT>
Yes. That's right. Westergaard's web pages -- which have no reason to include any dates anyway -- are non-compliant.
Doesn't that just give you warm fuzzies? A company telling us about the perils of year-2000 bugs, presumably one of the most well-informed organizations in the world, who can't possibly deny that they know that all code today must be year-2000 compliant... is writing non-compliant code. Today.
Now if they're doing it, just think how many less informed organizations out there are. But everything will be fine if we all just pull together. The 'Blitz spirit' will save us.
Hmm.
Excuse me, I'm off to buy a year's supply of food and a couple of 'Mr Fusion' reactors.
Anon
-----== Posted via Deja News, The Leader in Internet Discussion ==----- dejanews.com Create Your Own Free Member Forum |