storing NSTimestamp values as GMT, displaying as (client) local?
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