我如何测试我的浏览器时区相关的应用程序againts不同的时区? [英] How do I test my browser timezone dependent application againts different timezones?
问题描述
例如,每当我检查UTC偏移时,我发现它是+只有5.5。
我如何测试它是否也适用于其他时区?我特别想看看它是如何与美国时区。
我主要使用Firefox。有没有我可以编辑的配置设置?我试图改变我的系统时区,但它不起作用。 解决方案
你需要重新启动浏览器,系统的时区。 Firefox保留原来的时区,我相信,如果你不重新启动,Chrome会认为你是UTC的。
I'm making a Javascript web application that depends on user's browser time zone.
For example, whenever I check the UTC offset, I find it to be +5.5 only.
How do I test if it works in other time zones as well? I specially want to see how it works with US time zones.
I use Firefox mostly. Is there any configuration setting I can edit? I tried changing my system time zone, but it didn't work.
You need to restart your browser after you change your system's timezone. Firefox keeps the original timezone, I believe, and Chrome thinks you are in UTC if you do not restart.
这篇关于我如何测试我的浏览器时区相关的应用程序againts不同的时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!