Open Bug 1648678 Opened 4 years ago Updated 1 month ago

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)

77 Branch
defect

Tracking

()

REOPENED

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:

  1. Open cmd.exe as administrator or
    logon to Linux or any OS as root
    SECOND STEP
  2. 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.
  3. Write sample.html which is writing
    new Date().toTimeString();
    using java script.
  4. 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
  5. 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

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,

http://geocities.ws/murugesan/MyCertificates.html

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.

Group: firefox-core-security
Component: Untriaged → JavaScript: Internationalization API
Product: Firefox → Core

I am attaching related steps and snapshots from:

  1. firefox.exe
  2. chrome.exe
  3. iexplore.exe
    I need to know how to attach document here ?
Flags: needinfo?(mukeshgct)
Attached file firefox_bug.docx

found attachment button.

Flags: needinfo?(mukeshgct)

attached same now.

I thing you have tried following steps to reproduce the same:

  1. Click date at right most end of task bar
  2. Click "Change date and time settings..."
  3. Click "Change time zone"
  4. 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.
Summary: tzutil.exe or timedatectl restart firefox/firefox.exe for this to work → tzutil.exe or timedatectl using commands restart firefox/firefox.exe for this to work INSTEAD OF USING GUI change date and time settings...
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Flags: needinfo?(mukeshgct)
Summary: tzutil.exe or timedatectl using commands restart firefox/firefox.exe for this to work INSTEAD OF USING GUI change date and time settings... → tzutil.exe or timedatectl using commands restart firefox/firefox.exe for this to work INSTEAD OF USING GUI change date and time settings... http://geocities.ws/murugesan/firefox_Comedy.html
Group: core-security
Severity: S4 → --
Status: UNCONFIRMED → RESOLVED
Iteration: 77.1 - Apr 6 - Apr 19 → ---
Points: 13 → ---
Closed: 4 years ago4 years ago
relnote-firefox: ? → ---
Priority: P5 → --
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Summary: tzutil.exe or timedatectl using commands restart firefox/firefox.exe for this to work INSTEAD OF USING GUI change date and time settings... http://geocities.ws/murugesan/firefox_Comedy.html → tzutil.exe or timedatectl using commands restart firefox/firefox.exe for this to work INSTEAD OF USING GUI change date and time settings...

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?

Status: VERIFIED → REOPENED
Crash Signature: http://geocities.ws/murugesan/firefox_Comedy.html
Ever confirmed: true
Flags: needinfo?(andrebargull)
Resolution: INVALID → ---
See Also: → 1348916
Summary: tzutil.exe or timedatectl using commands restart firefox/firefox.exe for this to work INSTEAD OF USING GUI change date and time settings... → 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

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.

Flags: needinfo?(andrebargull)

The severity field is not set for this bug.
:Waldo, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jwalden)
Severity: -- → S1
Severity: S1 → --
Severity: -- → S1

Please do not change the severity field again. If you continue to do so your account will be disabled.

Severity: S1 → --

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 :) :(

Severity: -- → S4
Priority: -- → P5
Flags: needinfo?(jwalden)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: