• 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: Auto-detection of local time zone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-detection of local time zone


  • Subject: Re: Auto-detection of local time zone
  • From: Paul Hoadley <email@hidden>
  • Date: Sun, 02 Sep 2012 12:40:16 +0930

Hi Johann,

On 29/08/2012, at 10:03 PM, Johann Werner wrote:

you can detect the time offset to UTC via _javascript_ on the client browser and use that in your app to adjust the session's timezone.

Thanks for that.  Looks like that's just what ERXTimeZoneDetector is doing.  

Though this should be taken with care as this is considering only the time offset and not the real timezone that can have additional info as daylight time savings.

Good point.  The offset alone will certainly be sufficient for my needs for now.

It looks like ERXTimeZoneDetector is trying to allow for that, though, isn't it Ramsey?  It should pick _a_ zone with the correct offset and whether or not it observes DST, just not necessarily _the_ zone that the user is in.  That's certainly good enough for me—I don't plan to display the chosen zone back to the user.  As long as it's functionally the correct zone, that's perfect.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
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: Auto-detection of local time zone
      • From: Ramsey Gurley <email@hidden>
  • Prev by Date: Re: Fancy D2WModern display question
  • Next by Date: Re: Auto-detection of local time zone
  • Previous by thread: Re: Fancy D2WModern display question
  • Next by thread: Re: Auto-detection of local time zone
  • Index(es):
    • Date
    • Thread