« Pumpkin Stencils!! | Main | Windows Live is out »
October 31, 2005
Safari's Date()
A coworker and I wrote a flurry of Javascript recently for Firefox and IE. Soon afterwards I switched my work machine to a G4 Powerbook and I wanted to make our code run in Safari. I came across this funny bug.
Normally, this code:
Date("10/31/2005 09:30:00 AM");
gives you a nice Date object initialized to the date you'd expect. For some reason Safari freaks out when it sees this and gives you the 1901 default date.
Posted by edward at October 31, 2005 08:31 PM