|
Henri Yandell made changes - 06/Jul/07 08:24 PM
Unit Test to follow as I need to shoot away to work
Dave Meikle made changes - 02/Aug/07 07:06 AM
Dave Meikle made changes - 03/Aug/07 08:58 AM
Dave Meikle made changes - 03/Aug/07 08:59 AM
The patch fails for me. I'm on PDT rather than GMT and the time is off by 8 hours.
Testcase: testRoundLang346(org.apache.commons.lang.time.DateUtilsTest): FAILED
Dave Meikle made changes - 07/Aug/07 07:03 AM
Sorry about that - This patch should remove the unit test's dependency on GMT.
Dave Meikle made changes - 07/Aug/07 07:04 AM
That works better. Fails with the test, passes with the fix.
I'll dig through it a bit more before committing - thanks for finding/fixing this.
Henri Yandell made changes - 08/Aug/07 03:50 PM
Here's a slightly different fix patch, what do you think Dave?
Doing the < Calendar.SECOND felt a bit weird to me, and I think the bit needed is to pull the 'done = true's outside of their blocks.
Henri Yandell made changes - 08/Aug/07 09:37 PM
Yeah, that looks good - I totally agree with the < Calendar.SECOND bit. Now I see it, I am wondering why I didn't too that
Cheers,
Patches applied. Thanks Dave, and thanks to Ken for originally reporting this.
Henri Yandell made changes - 09/Aug/07 12:25 AM
Henri Yandell made changes - 24/Feb/08 04:24 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Looking at the source code history, the error presumably came in during changes to the modify(Calendar, int, boolean) method for
LANG-59.