Re: "old" dob
Re: "old" dob
- Subject: Re: "old" dob
- From: Chuck Hill <email@hidden>
- Date: Wed, 6 Aug 2008 20:15:24 -0700
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 specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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
References: | |
| >"old" dob (From: Dan Faber <email@hidden>) |