• 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
storing NSTimestamp values as GMT, displaying as (client) local?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

storing NSTimestamp values as GMT, displaying as (client) local?


  • Subject: storing NSTimestamp values as GMT, displaying as (client) local?
  • From: Leif Harrison <email@hidden>
  • Date: Tue, 14 Apr 2009 17:46:10 -0700

Hey WO devs,

After reading through some older threads, and experimenting with this a bunch myself, I'm still not entirely sure of all the pieces I need correct in order to store my NSTimestamp values in GMT, yet display them on the client (browser) in local time.

Some specific things I'm not sure about:
1. Do I need to worry about setting the timezone in the EOModel for all my NSTimestamp attributes? Or is calling NSTimeZone.setDefaultTimeZone(NSTimeZone.getGMT()) in my Application constructor good enough?
2. Do I need to worry about configuring Postgres to set it's default timezone?
3. How can I get the local timezone (of the browser client) so that I can use it for my WOTextfield formatters (to display local time)?
4. Anything else I need to worry about, or not thinking of?


	- Leif Harrison
	  Übermind Inc.


_______________________________________________ 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: storing NSTimestamp values as GMT, displaying as (client) local?
      • From: Andrew Lindesay <email@hidden>
  • Prev by Date: Re: migrations in framework
  • Next by Date: Re: storing NSTimestamp values as GMT, displaying as (client) local?
  • Previous by thread: Re: JavaXML.framework Question
  • Next by thread: Re: storing NSTimestamp values as GMT, displaying as (client) local?
  • Index(es):
    • Date
    • Thread