• 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: NSTimestampFormatter DECREMENTING 'day' on each pass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimestampFormatter DECREMENTING 'day' on each pass


  • Subject: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
  • From: Ken Anderson <email@hidden>
  • Date: Tue, 16 May 2006 17:12:02 -0400

Bill,

In my experience, since about WOF 4, the ability to change the time zone through the UI hasn't worked (at least not for me). YMMV, you can look at the inspector for a datetime and it should show you the server time zone and have a set button. When I hit the set button, I can never find any timezones.

So, I have a prototype for my datetime columns. I manually edit the prototype .plist file to have:

serverTimeZone = GMT;

You can verify it worked by looking in the attribute inspector after re-opening the model.

Ken

On May 16, 2006, at 4:53 PM, WebObjects wrote:

If anyone can help nudge me just a little further along... (please)

I'm having a heck of a time understanding 'how' to programmatically, or via
EOModeler, alter the 'serverTimeZone' attribute.


Is there a simple step 1, 2, 3, explanation someone can shove in my
direction?

Greatly appreciated!

-Bill Reynolds

http://developer.apple.com/documentation/WebObjects/Reference/API/ com/webobj
ects/eoaccess/EOAttribute.html#setServerTimeZone(java.util.TimeZone)



on 5/16/06 01:34, Wolfram Stebel at Wolfram.Stebel@bugs-and- errors.de wrote:


Am 16.05.2006 0:37 Uhr schrieb "WebObjects" unter <email@hidden>:

I did scour the archives before asking - all roads lead to the same
unanswered question... How is an EOF attribute like " serverTimeZone = GMT;"
set?
Doc of EOAttribute:

"
The handling of dates assumes by default that both the database server and
the client application are running in the local time zone. You can alter the
time zone that is assumed for the database server with the setServerTimeZone
method. If you alter the server time zone, the adaptor automatically
converts dates as they pass into and out of the server
"


This method seems to be a little expensive to use... i wonder it is not a
static method...



Wolfram




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anderhome.com


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: NSTimestampFormatter DECREMENTING 'day' on each pass
      • From: WebObjects <email@hidden>
References: 
 >Re: NSTimestampFormatter DECREMENTING 'day' on each pass (From: WebObjects <email@hidden>)

  • Prev by Date: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
  • Next by Date: WebAssistant not working any longer
  • Previous by thread: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
  • Next by thread: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
  • Index(es):
    • Date
    • Thread