--- On Wed, 8/6/08, Mersida Kurti <email@hidden> wrote:
From: Mersida Kurti <email@hidden> Subject: Re: "old" dob To: "Chuck Hill" <email@hidden> Date: Wednesday, August 6, 2008, 11:20 PM
Well...the daylight savings time was established on March 31, 1918 in the U.S. Maybe the solution you put for the DST before will help you fix the DOB problem too... :)
--- On Wed,
8/6/08, Chuck Hill <email@hidden> wrote:
From: Chuck Hill <email@hidden> Subject: Re: "old" dob To: "Dan Faber" <email@hidden> Cc: email@hidden Date: Wednesday, August 6, 2008, 11:15 PM
On Aug 6, 2008, at 8:10 PM, Dan Faber wrote:
> I am having trouble saving the date of birth of "old" people. There > seems to be something wrong with any date before 4/1/1918. When we > try to save a birthdate that is before that date, it is saved after > subtracting one day. If the DOB is 3/15/1918, it is saved in the DB > as 3/14/1918. When it is retrieved from the DB, it is displayed as > 3/14/08. > > We had a problem with daylight savings time earlier this year. Is > this a similar problem? Is
there something special about March 31, > 1918 or April 1? > > I have worked around the problem by adding a day to the NSTimestamp > before saving to DB if the date is before 4/1/1918. This is a very > unsatisfying solution. > > I am using WO5.3, with wonder, on leopard. This happens in both > development and deployment. > > Thanks for any insight.
Yes, this is a similar problem. Something changed in time on 4/1/1918. A make up day? What ever it was, it is vexing when you want to consider a date a date and not the point in time that Java considers it. I don't have any good solution other than to wait a few more years... :-P
Chuck
-- Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve
|
_______________________________________________
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
|