• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the client timezone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting the client timezone
      • From: "Ricardo J. Parada" <email@hidden>
References: 
 >Getting the client timezone (From: "Ricardo J. Parada" <email@hidden>)
 >Re: Getting the client timezone (From: Johann Werner <email@hidden>)
 >Re: Getting the client timezone (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: Re: WOWODC 2011 news
  • Next by Date: Re: Ajaxy WOBrowser-based ToMany Editor
  • Previous by thread: Re: Getting the client timezone
  • Next by thread: Re: Getting the client timezone
  • Index(es):
    • Date
    • Thread