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.
Comments
Post a Comment