问题
Starting from about 20.01.2021, after the Chrome update to version 88.0, the time zone incorrectly processed in applications. When calling the Date() function, the time zone has a different sign (-07:00 instead of +07:00):
After changing the time zone in the system and restarting the browser, the time zone is picked up correctly. After restarting the operating system, the problem returns. The problem is observed on Windows 7 and Windows 10. There is no such error in the Mozilla Firefox browser. Has anyone encountered the same problem and how to solve it?
回答1:
This is indeed issue 1168528 in Chromium (bug in Chrome 88 stable), you are correct.
Root cause: A bug in the ICU library, as used by Chrome et al, for when Automatic DST is OFF in Windows. See comments from an ICU developer on ICU PR 1543.
Workaround: Affected users can change their Windows timezone settings to a completely different TZ, then change it back the original. We asked users to restart the browser afterwards & try using the web application again, and the problem was corrected. (I don't think they changed their Auto DST settings, and yet the problem was fixed...)
The characteristic feature of the bug is the e.g. GMT-7 instead of GMT+7.
回答2:
tzutil /s "E. South America Standard Time" Nota: este comando deve estar de acordo com o fuso horário do usuário.
来源:https://stackoverflow.com/questions/65912692/chrome-88-incorrect-time-zone-sign