我如何测试我的浏览器时区相关的应用程序againts不同的时区? [英] How do I test my browser timezone dependent application againts different timezones?

查看:821
本文介绍了我如何测试我的浏览器时区相关的应用程序againts不同的时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



例如,每当我检查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屋!

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