Re: NSTimestampFormatter DECREMENTING 'day' on each pass
Re: NSTimestampFormatter DECREMENTING 'day' on each pass
- Subject: Re: NSTimestampFormatter DECREMENTING 'day' on each pass
- From: Chuck Hill <email@hidden>
- Date: Tue, 16 May 2006 20:17:28 -0700
On May 16, 2006, at 4:54 PM, Art Isbell wrote:
On May 16, 2006, at 1:16 PM, WebObjects wrote:
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).
And, why would having a
lower year (one in the 1700's for instance) make any difference?
I don't have a definite answer, but I do know that time zone data
from the past can be very sketchy which might lead to bugs when
converting back and forth between time zones.
I'd go further than very sketchy. There have been many adjustments
and other changes to date and time over the centuries. The Java
libraries try to take them all into account. Trying to get the
behavior you expect from the classes can be an exercise in
frustration. I have, at times, resorting to doing my own (incorrect)
date math to get the inaccurate but expected result that I wanted.
Dates. Run away!
Chuck
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
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