Re: "old" dob
Re: "old" dob
- Subject: Re: "old" dob
- From: Art Isbell <email@hidden>
- Date: Wed, 06 Aug 2008 17:40:40 -1000
On Aug 6, 2008, at 5:15 PM, Chuck Hill wrote:
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.
Actually, WO has its own zoneinfo database independent of Java
zoneinfo database. The source of these databases is the same, http://www.twinsun.com/tz/tz-link.htm
, but the versions that each use at any particular time are likely
different. But this shouldn't affect old dates, just recent Daylight
Saving Time adjustments.
If you want to see the gory details, download the North American
zoneinfo data file (and be happy that you aren't calculating Canadian
dates and times :-)
I don't have any good solution other than to wait a few more
years... :-P
That's the same solution for all of us, innit? :-)
Aloha,
Art
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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