Year 2000 Bug Spotted in 2005.

Nov 06, 2005 23:09

I'm preparing slides for a course on web usability for barbershoppers. I'm going through the sites of big-name choruses to see where they trip themselves up. I'm not phased by offenses like fixed-width layouts, too many animations, and busy background graphics. The one thing that can still stun, though, is seeing the Y2K bug in late 2005. This is from the web site of a chorus with a gold medal or ten. I laugh so that I do not cry.




Update: Oh, wait, it's not as funny as I thought. The date text is generated by browser-side JavaScript:
var now = new Date();
var year = now.getYear();
I guess getYear in IE returns the four-digit year while getYear in Firefox returns the year perl-style: less 1900. Well, at least I know their design house (whose home page exhibits the same issue) doesn't test with Firefox. The solution is apparently to use getFullYear(). Honestly, who would trust the client to put a date on the page?

web design, barbershop

Previous post Next post
Up