Closed
Bug 71605
Opened 24 years ago
Closed 24 years ago
getDate() returns one day in the future.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
People
(Reporter: mozilla, Assigned: rogerl)
References
()
Details
now = new Date();
document.write(getCorrectDate(now.getDate()))
Results in a date 1 day in the future. See the URL for example code that works
around this.
Comment 1•24 years ago
|
||
Worksforme with PC Linux 2001030921.
Reporter | ||
Comment 2•24 years ago
|
||
I'm using 2001031021 and it's still broken (this is on Linux a Debian 2.2
system). Go to http://www.miggy.org/js.html now, it'll show both the corrected
and uncorrected date, I get 11 and 12 when it's the 11th.
Comment 3•24 years ago
|
||
My PC Linux 2001031105 says with js.html:
Corrected date: 10
UNCorrected date: 11
I have Redhat 7.0 and my timezone is EET (Europe/Helsinki)
(local time is Mar 11 18:16).
Comment 4•24 years ago
|
||
I see the exact number as Asko, corrected: 10, uncorrected: 11.
Reporter | ||
Comment 5•24 years ago
|
||
Ok, I'm on Europe/London as my timezone, currently that's equal to GMT. I
wonder if this IS related to the other report that was to do with that then.
Either way something needs fixing.
Comment 6•24 years ago
|
||
I also see this in Mozilla 2001031008 in WinNT.
I'm also in the GMT time zone (I'm in Dublin, Ireland).
Reporter | ||
Comment 7•24 years ago
|
||
Ok, I'm now guessing this IS the same bug as in #65671. I wasn't sure to
start with, hence posting this new one. Empirical evidence suggests
Europe/London is the troublesome timezone however. Hmmmmm, back on Netscape
4.76 where I first saw this "TZ=GMT netscape" does fix things. "TZ=GB-Eire
netscape" is still broken though, as is "TS=GB netscape". Any 'UK' zone I try
under Europe/ also has the problem, so there's no workaround it seems. No, I
don't want to change my timezone manually when DST happens on 25th March, damn it!
Confirmed same behaviour on build 2001031021. I'll check if there's a later
one and report only if it IS fixed in such.
Comment 8•24 years ago
|
||
I can see the problem with setting TZ=Europe/London and exporting it.
(PC Linux 2001031105)
Comment 9•24 years ago
|
||
I concur with Athanasius; this is a duplicate of bug 65671.
Resolving as Duplicate, and copying the reporter and cc list
from this bug to bug 65671 -
*** This bug has been marked as a duplicate of 65671 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•