Chrome 88错误的时区标志 [英] Chrome 88 incorrect time zone sign

查看:54
本文介绍了Chrome 88错误的时区标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Chrome 28.0.2021开始,大约从20.01.2021开始,时区在应用程序中处理不正确.调用Date()函数时,时区具有不同的符号(-07:00而不是+07:00):

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

在系统中更改时区并重新启动浏览器后,将正确选择时区.重新启动操作系统后,问题再次出现.在Windows 7和Windows 10上观察到此问题.Mozilla Firefox浏览器中没有这样的错误.有没有人遇到过同样的问题以及如何解决?

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?

推荐答案

这确实是

This is indeed issue 1168528 in Chromium (bug in Chrome 88 stable), you are correct.

根本原因:Chrome等人在ICU库中发现的错误,用于Windows中自动DST"处于关闭状态时.请参阅在ICU PR 1543上来自ICU开发人员的评论.

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.

解决方法:受影响的用户可以将Windows时区设置更改为完全不同的TZ,然后将其改回原始TZ.之后,我们要求用户重新启动浏览器.尝试再次使用Web应用程序,问题已得到纠正.(我不认为他们更改了自动DST设置,但问题已解决...)

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...)

该漏洞的特征是GMT-7,而不是GMT + 7.

The characteristic feature of the bug is the e.g. GMT-7 instead of GMT+7.

这篇关于Chrome 88错误的时区标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆