On 30/12/14 13:49, Grant Pax wrote:
Any idea why I might get the following test failures?:

Results :

Failed tests:
   TestUtils.testCalendarToXSDTimeString:56 expected:<[13]:32:01.000+01:00> but 
was:<[08]:32:01.000+01:00>
   TestUtils.testCalendarToXSDDateTimeString:36 
expected:<1984-03-22T[14]:32:01.000+00:00> but 
was:<1984-03-22T[09]:32:01.000+00:00>

I live on the east coast of the US and am indeed -5GMT. Is there a java compile 
setting I’m neglecting? I’m on OS X Yosemite. JDK 1.7.


Hi Grant,

Just to be clear in case it saves you time : if you are just using Jena without mods, you don't need to build it.

There is a nightly development build in this maven repo:
https://repository.apache.org/content/repositories/snapshots/

and if you are downloading a binary distribution build directly:

https://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena

------------------------

It looks like the tests (which are 4 week sold) are wrong and I see that our Jenkins builds are done in UTC so that does not catch it.

In essence Date.getTime returns an Epoch based Date and the Epoch is in GMT.

Good news - we now use FastDateFormat and there is a "format calendar" operation (unlike SimpleDateFormat) which avoids the Date-isms.

Thanks for the report and details,

        Andy

Reply via email to