Closed Bug 115942 Opened 23 years ago Closed 23 years ago

Time zone doesn't update correctly

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 127246

People

(Reporter: mozilla7, Assigned: khanson)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6+) Gecko/20011218 BuildID: 2001121803 Apparently the current time zone is read at launch time and cached. If the time zone changes while Mozilla is running, the cached value is now wrong. Reproducible: Always Steps to Reproduce: 1. Type "javascript:new Date();" into the address bar. The time and time zone should match the system settings. 2. Change the system time zone in the Control Panel 3. Click in the address bar and press Enter to get the time again Actual Results: The time zone does not change. The time adjusts so it's correct for the old time zone (in other words, Mozilla does have the correct time in GMT). Expected Results: You should see the new time zone, with the correct local time. This is similar to, but not the same as, bug 115911 on Mac OS.
Reassigning to Patrick as with bug 115911. Note, I had already changed the OS on bug 115911to "All", and added my findings on WinNT and Linux. So at this point I think this bug is now a duplicate of the other. Andy, Patrick: what do you think?
Assignee: rogerl → beard
Status: UNCONFIRMED → NEW
Ever confirmed: true
Yeah, I didn't see that until after I submitted this. I'm getting different results between Mac OS and Windows. On Mac OS, if I change the time zone, new Date() shows the correct local time but the incorrect time zone (so, GMT is wrong). On Windows, if I change the time zone, new Date() shows the incorrect local time but the correct time zone (so GMT is correct). Are these the same bug? Are you getting different results than I?
I don't believe they are the same bug, so I'd recommend we file separate bugs for the different platforms. I'm only prepared to fix this on the Mac. This is highly platform dependent code.
OK, reassigning this one to Kenton; cc'ing Patrick. If it helps, here are my questions/findings from bug 115911: ------- Additional Comment #1 From Phil Schwartau 2001-12-18 16:34 ------- Changing OS : Mac ---> All, since I see the same problem on WinNT. I'm not sure how to change the timezone on Linux. Anyone know? TIMEZONE On WinNT, if I change my timezone while Mozilla (or the JS shell) is running , such change is not reflected in my next call to new Date(). Same is true on Mac9.1. Can't try on Linux yet (see above). MONTH/DAY/TIME What if we change month/day/time while Mozilla/JS shell is running? WinNT: the change IS reflected in my next call to new Date() !!! Linux: the change IS reflected in my next call to new Date() !!! Mac9.1 the change is NOT reflected I don't know if the MONTH/DAY/TIME issue can be fixed in the same way as the TIMEZONE problem, but I wanted to mention the discrepancy -
Assignee: beard → khanson
Interestingly, Mac OS now behaves this way too. Marking as a dupe of bug 127246. *** This bug has been marked as a duplicate of 127246 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified Duplicate -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.