Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
203 views
in Technique[技术] by (71.8m points)

javascript - Chrome 88 incorrect time zone sign

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): Incorrect time zone sign System time zone

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?

question from:https://stackoverflow.com/questions/65912692/chrome-88-incorrect-time-zone-sign

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...