[
https://issues.apache.org/jira/browse/OODT-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702047#comment-13702047
]
Chris A. Mattmann commented on OODT-559:
----------------------------------------
Tom, I'm now experiencing PDT related timezone failures here -- see:
{noformat}
-------------------------------------------------------------------------------
Test set: org.apache.oodt.cas.metadata.util.TestPathUtils
-------------------------------------------------------------------------------
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec <<<
FAILURE!
testDoDynamicReplacement(org.apache.oodt.cas.metadata.util.TestPathUtils) Time
elapsed: 0.015 sec <<< FAILURE!
junit.framework.ComparisonFailure: expected:<47[50002]01.000> but
was:<47[49714]01.000>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.apache.oodt.cas.metadata.util.TestPathUtils.testDoDynamicReplacement(TestPathUtils.java:58)
{noformat}
I'm going to revert this for now, and can you take a look? I need to proceed
with the RC for 0.6.
If you have time to figure it out and submit a new patch maybe we can get it in
there for 0.6 RC #2 or later,
but for now, reverting this.
> Unit test failure in testDoDynamicReplacement for "Europe/London" timezone
> --------------------------------------------------------------------------
>
> Key: OODT-559
> URL: https://issues.apache.org/jira/browse/OODT-559
> Project: OODT
> Issue Type: Bug
> Components: commons
> Affects Versions: 0.6
> Reporter: Varun Ratnakar
> Assignee: Chris A. Mattmann
> Priority: Minor
> Fix For: 0.6
>
> Attachments: fix_date_test.patch
>
>
> I've been regularly encountering a unit test failure in
> testDoDynamicReplacement. After investigating it a bit further, I found that
> it seems to be related to the TimeZone. If I set my computer's timezone to
> PST (or any other timezone except "Europe/London"), it works, but with
> "Europe/London" Timezone I get the following:
> DATE_TO_SECS (2008-01-20T16:30:28.000-000033 , TAI_FORMAT , 1993-01-01)
> = 474996601.000
> Should be = 475000201.000
> Difference of 3600 seconds = 1 hour
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira