Closed Bug 71605 Opened 24 years ago Closed 24 years ago

getDate() returns one day in the future.

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 65671

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.
Worksforme with PC Linux 2001030921.
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.
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).
I see the exact number as Asko, corrected: 10, uncorrected: 11.
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.
I also see this in Mozilla 2001031008 in WinNT. I'm also in the GMT time zone (I'm in Dublin, Ireland).
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.
I can see the problem with setting TZ=Europe/London and exporting it. (PC Linux 2001031105)
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
Marking Verified Duplicate -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.