[webkit-dev] Stumped by Date() results in Safari
David D. Kilzer
ddkilzer at kilzer.net
Tue Feb 13 13:37:35 PST 2007
Are you able to upgrade from Panther (10.3.9) to Tiger (10.4.x)?
Apple will be releasing Leopard (10.5) within the next few months,
and Panther will be end-of-lifed (for all intents and purposes) after
On Feb 13, 2007, at 3:20 PM, Jason White wrote:
> Hmm. Yes, that's it. The machines having the problem all run 10.3.9
> and Safari reports being 1.3.2. I suppose it could be a problem that
> was fixed, but since I think people would have noticed this I've got a
> feeling that it's probably something external to Safari.. I'm just
> really puzzled by why it would only affect that browser on the very
> same machines.
> I'm in a situation where I have to support Safari for various reasons,
> however, I'm not really an expert on it.. so if someone spots a big
> newbie mistake please accept my apologies! As I said, I tried to find
> the answer in documentation but got nowhere. Thanks for sharing the
> bandwidth and time..
> On 2/13/07, Geoffrey Garen <ggaren at apple.com> wrote:
>> I tried this in Safari on 10.4.8:
>> and got:
>> which is greater than 214748364700.
>> Am I testing the right thing?
>> On Feb 13, 2007, at 12:57 PM, Jason White wrote:
>> > If I'm posting to a very wrong place, please let me know. I'm
>> having a
>> > supporting it alongside Firefox, IE, and Navigator.
>> > It appears that Safari has a problem when I attempt to use new
>> > and pass in a string formatted date greater than 01/19/2038.
>> Using x
>> > = new Date('01/19/2038').getTime(), it appears that the
>> > since 01/01/1970 never goes over 214748364700 no matter what you
>> > the date to..but it can be less. IE and Firefox will go much higher
>> > than that. Converting that number to binary, it doesn't look like
>> > anything is getting overflowed (it's not all 1s)
>> > Can anyone help me figure out what is wrong here? I can't
>> imagine it's
>> > Safari's fault, or someone would have noticed by now. I don't think
>> > it's a system configuration issue because the other browsers don't
>> > have the same problem.
>> > Also, if anyone knows of a good reference book on this browser
>> > let me know! For some reason I'm having a hard time finding much
>> > information on developing for it's peculiarities.
>> > Thanks,
>> > Jason White
>> > Developer
>> > New England Research Institute
More information about the webkit-dev