Changing the timezone using tzutil.exe (Windows) or timedatectl (Linux), instead of using the GUI, does not update ICU timezone used for website date/time functionality
Categories
(Core :: JavaScript: Internationalization API, defect, P5)
Tracking
()
People
(Reporter: mukeshgct, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
229.85 KB,
application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
Firefox for Android
Steps to reproduce:
- Open cmd.exe as administrator or
logon to Linux or any OS as root
SECOND STEP - cmd.exe => C:\Windows\System32\tzutil.exe /s "Aleutian Standard Time"
"Aleutian Standard Time" can be any valid time zone.
OR
timedatectl set-local-rtc 1
1 can be any valid number as per time zone. - Write sample.html which is writing
new Date().toTimeString();
using java script. - re do "SECOND STEP" alone using tzutil.exe or timedatectl as per operating system to change different time zone.
Do not close firefox/firefox.exe - If we refresh that sample.html it will not display updated time as per current time zone.
However at Linux/related OS will display correct time:
ECHO %DATE% %TIME%
OR
/usr/bin/date
firefox.exe/firefox retaking the values only when we restart firefox/firefox.exe
I FEEL THAT THIS COULD NOT HAVE BEEN TESTED FROM BASE VERSION TILL NOW.
Firefox version: 77.0.1 Firefox Release June 3, 2020
I am not sure about Version: branch
Actual results:
If I am travelling across the galaxies
http://geocities.ws/murugesan/MyCertificates.html
firefox displaying my current galaxy time.
Expected results:
when I reach next galaxy
I may do previous galaxy action here.
restarting firefox displaying my current time as per firefox/firefox.exe browser usage
only for fun :)
to reduce tension across development, testing, support and release teams.
$ strings -a firefox | grep -i version
os_version
build_version
https://aus5.mozilla.org/update/6/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%SYSTEM_CAPABILITIES%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml
https://crash-reports.mozilla.com/submit?id={ec8030f7-c20a-464f-9b0e-13a3a9e97384}&version=77.0.1&buildid=20200602222727
GetFileVersionInfoSizeW
GetFileVersionInfoW
VERSION.dll
RtlGetVersion
GetVersionExW
VerifyVersionInfoA
VerifyVersionInfoW
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
version="1.0.0.0"
version="6.0.0.0"
version="1.0.0.0"
$ /usr/bin/ls -ltr firefox | awk '{ print 0$7"-"$6" "$8" "$NF}'
03-Jun 05:24 firefox
Comment 1•4 years ago
|
||
Doesn't look like this needs to be a security bug. Also maybe a dupe of bug 1348916. Also, the testcase at https://bug1348916.bmoattachments.org/attachment.cgi?id=8849197 works fine when refreshed. Likewise,
After updating my timezone on macOS, the time zone descriptors on the page update after refreshing the page (without restarting Firefox). It's not clear to me from comment #0 if that's also what you're seeing and/or what else you expect.
Reporter | ||
Comment 2•4 years ago
|
||
I am attaching related steps and snapshots from:
- firefox.exe
- chrome.exe
- iexplore.exe
I need to know how to attach document here ?
Reporter | ||
Comment 4•4 years ago
|
||
attached same now.
Reporter | ||
Comment 5•4 years ago
|
||
I thing you have tried following steps to reproduce the same:
- Click date at right most end of task bar
- Click "Change date and time settings..."
- Click "Change time zone"
- change any one of the time zone using GUI.
This used to work.
However this will not work if you do the same using tzutil at windows
or timedatectl at Linux oriented OS => I cannot test the same here at Linux.
I feel so.
Comment hidden (off-topic) |
Comment hidden (off-topic) |
Reporter | ||
Updated•4 years ago
|
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Updated•4 years ago
|
Comment hidden (off-topic) |
Comment hidden (off-topic) |
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 13•4 years ago
|
||
I can reproduce using the commandline tool on Windows, but we will have to close this again and disable your account if you persist in spamming people associated with Mozilla or this bugreport, or abuse the flags on this bugreport again.
:anba, any idea why the commandline tool behaves differently from the UI here? Do we not get notifications from the OS or something?
Comment 14•4 years ago
|
||
We don't implement time zone change observers (bug 1343826, blocking bug 1348916). The only place where we try to check for updates is Realm::init
when creating new JS global objects.
Comment 15•4 years ago
|
||
The severity field is not set for this bug.
:Waldo, could you have a look please?
For more information, please visit auto_nag documentation.
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Comment hidden (offtopic) |
Comment 17•4 years ago
|
||
Please do not change the severity field again. If you continue to do so your account will be disabled.
Reporter | ||
Comment 18•4 years ago
|
||
ok sure. I will follow the same.
I have updated since
The severity field is not set for this bug.
I was in the mood of support team :) :(
Updated•3 years ago
|
Updated•3 years ago
|
Description
•