You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gumnaam <gu...@cox.net> on 2007/08/15 03:26:53 UTC
Client Timezone in ClientProperties
I see that there is a method called getTimezone() on the
ClientProperties object.
The javadoc for it says
"Get the client's time zone if that could be detected."
I tried to get this property, by submitting request from various
browsers on various platforms,
but it always returns null.
Can some one elaborate on how is the client timezone detected ? and why
is it not working for
any browser/os combo ?
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Client Timezone in ClientProperties
Posted by Eelco Hillenius <ee...@gmail.com>.
> I see that there is a method called getTimezone() on the
> ClientProperties object.
>
> The javadoc for it says
> "Get the client's time zone if that could be detected."
>
> I tried to get this property, by submitting request from various
> browsers on various platforms,
> but it always returns null.
>
> Can some one elaborate on how is the client timezone detected ? and why
> is it not working for
> any browser/os combo ?
You can turn on advanced browser detection for properties such as
these by putting:
getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
in your Application's init method. Like the HelloBrowser example does.
Note that this is merely a convenience implementation. You might want
to look at how it works, and e.g. put the logic in a login page so
that you don't have to deal with the flicker from the redirecting.
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org