document.write( "Output of 'new Date()' " );
document.write( new Date() + "<br>" );
produces this output:
Output of 'new Date()' Tue Nov 17 2009 20:46:51 GMT+1800 (CDT)
The problem is that it produces it when my computer says:
mstemper@coelurosaur:~/public_html/TryStuff$ date
Mon Nov 16 20:46:51 CST 2009
mstemper@coelurosaur:~/public_html/TryStuff$
The problem appears to be the time zone offset, since Central Time is
not +18 hours, but -6, which my OS correctly reports:
mstemper@coelurosaur:~/public_html/TryStuff$ date +%z
-0600
mstemper@coelurosaur:~/public_html/TryStuff$
This would appear to be the root cause of it giving a day that is one
day ahead.
Running the same code on FireFox 2.0.0.20 and Windows 98, the date is
reported as expected. The same is also true for the same version of
FireFox running on Windows XP. (They also correctly give the time
zone as CST instead of CDT, but that's a minor issue by comparison.)
After updating my copy running on the XP box to version 3.0.10, the
date is still correctly reported.
Is there some configuration item that I have missed on my linux box,
or is this truly a bug? If so, how do I report it?
--
Michael F. Stemper
#include <Standard_Disclaimer>
You can lead a horse to water, but you can't make him talk like Mr. Ed
by rubbing peanut butter on his gums.
go search here: https://bugzilla.mozilla.org/ and if
you find nothing, then report it there aswell.
--
*IMPORTANT*: Sorry folks, but I cannot provide email
help!!!!
Warning: Private emails sent to me may become public
Peter Potamus & His Magic Flying Balloon:
http://melaman2.com/cartoons/singles/mp3/p-potamus.mp3
http://www.toonopedia.com/potamus.htm