Re: Getting the client timezone
Re: Getting the client timezone
- Subject: Re: Getting the client timezone
- From: Travis Britt <email@hidden>
- Date: Thu, 11 Nov 2010 21:37:43 -0800
Yeah I do this by using javascript get the GMT offset reported by the browser on login, and store that in the session. Then use the offset to create a java.util.TimeZone and use that in a formatter to display all your time stamps in the user's expected time zone.
tb
On Nov 11, 2010, at 2:30 PM, Ricardo J. Parada wrote:
> Thanks... That should get me going.
>
>
>
> On Nov 11, 2010, at 4:43 PM, Johann Werner wrote:
>
>> Hi Ricardo,
>>
>> have a look at http://josephscott.org/archives/2009/08/detecting-client-side-time-zone-offset-via-javascript/
>> So you could put the presented script snippet in your login form and extract the GMT offset of the client from the request form values.
>>
>> jw
>>
>> Am 11.11.2010 um 22:25 schrieb Ricardo J. Parada:
>>
>>>
>>> What are you all doing to find out the timezone from the browser? I'm guessing there is a header in the request containing this info.
>>>
>>> Thanks,
>>> Ricardo
>>
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden