Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网络应用程序,亚洲的一些人发现程序中的日期存在一些奇怪的时区问题。有没有办法伪造 chrome 或 firefox 或 IE 来假装我的计算机的时区与他们的时区一样,以便我可以轻松调试问题?
当然:使用自定义环境变量从命令行启动浏览器,TZ而不是通常的运行方式:
TZ
TZ=Japan firefox &
当您像这样启动它时,请确保 firefox 尚未运行,因为如果它已经在运行,那么它可能只会在浏览器的现有实例下打开一个新窗口,而不是启动一个新实例。
在 Windows 8 中更改系统时间会自动更改我的 Firefox 浏览器时区,而无需重新启动或重新启动软件。