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 [EMAIL PROTECTED]
errors.de wrote:
Am 16.05.2006 0:37 Uhr schrieb "WebObjects" unter
<[EMAIL PROTECTED]>:
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists%
40anderhome.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]