Re: NSTimestampFormatter DECREMENTING 'day' on each pass
Re: NSTimestampFormatter DECREMENTING 'day' on each pass
- Subject: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
- From: WebObjects <email@hidden>
- Date: Tue, 16 May 2006 16:16:20 -0700
- Thread-topic: NSTimestampFormatter DECREMENTING 'day' on each pass
Ken, (and others who can help)
I did try using the GUI and like Ken I didn't have any luck, so I modified
the plist (below).
I can still 'force' a failure (the 'day' decrements each time the record is
saved) by submitting dates in the year 1700, but years in the 1900's seem to
work fine. Strange (to me).
First, is this (below) plist entry look correct? And, why would having a
lower year (one in the 1700's for instance) make any difference?
Thanks as always,
-Bill
{
allowsNull = Y;
columnName = "dt_dob";
externalType = date;
serverTimeZone = GMT;
name = dtDob;
valueClassName = NSCalendarDate;
valueType = D;
},
on 5/16/06 14:12, Ken Anderson at email@hidden wrote:
> 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