servlets - how to get client's time zone in java from HttpServletRequest? -


when server , client in different time zones, can client's time zone in java using httpservletrequest?

i trying create instance of 'calender' using client's 'locale' this,

calendar calendar = calendar.getinstance(request.getlocale()); timezone clienttimezone = calendar.gettimezone(); 

but giving me server's time zone only.

is method wrong? there other way client's time zone in server?

unfortunately time zone information's not passed in http request.

but there work around case.

check this answer , this one. may you.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -