This content has been marked as final.
Show 2 replies
-
1. Re: How to set client timezone
norman Feb 3, 2009 5:51 PM (in response to tathagat)I don't think timezone is sent via any standard HTTP header. Try the timezoneSelector.
-
2. Re: How to set client timezone
tathagat Feb 3, 2009 6:03 PM (in response to tathagat)Thanks for the reply.
This is what I do to set timezone.
<h:selectOneMenu value="#{timeZoneSelector.timeZoneId}"> <f:selectItems value="#{staticDataService.timeZones}"/> </h:selectOneMenu> <h:commandButton action="#{timeZoneSelector.select}" value="#{messages.ChangeTimeZone}"/>
But then I have the problem that the page doesn't load the new times automatically, unless I refresh the page.
Also this has to be done every time user logs in. So no cookies are being saved. How do I save cookie for timezone selection?This
<international:locale-selector cookie-enabled="true"/>
does not help.Thanks in advance.