如何检测客户端的时区? [英] How to detect the timezone of a client?
本文介绍了如何检测客户端的时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在jsp中获取客户端/请求时区?
How to get client/request timezone in jsp?
推荐答案
不幸的是,这些信息不会在HTTP头中传递。
Unfortunately this information is not passed in HTTP headers.
通常你需要合作的JavaScript来为你获取它。
网上有很多例子,这里有一个 http://www.coderanch.com/t/486127/JSP/java/Query-timezone
Usually you need cooperating JavaScript to fetch it for you.
Web is full of examples, here is one http://www.coderanch.com/t/486127/JSP/java/Query-timezone
这篇关于如何检测客户端的时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文