Hi Mukul,

Thanks for checking out Isis.

Ah, dates ... don't you just love them!  I'm afraid you are suffering from
the fact that the main authors of Isis are based in the UK, and so we
sometimes miss these things.  Great thing about Apache is we get interest
world-wide, so it helps flush out these bugs.

~~~
The simplest short-term fix for this defect might be to use
assumeThat(...), so that the test is skipped if your timezone is not BST.

Something like (in pseudo code):

assumeThat(TimeZone.currentTimeZone().getName(), is("GMT"));


Please raise a JIRA ticket to have this fixed, and - if you have the time -
attach the assumeThat(...) workaround as a patch so we could apply it.

Thx
Dan



On 29 August 2012 14:23, mukul joshi <[email protected]>wrote:

> Hi,
>
>
>
> I am doing a local build of Apache Isis and I get an error in the build of
> the testsupport component as follows:
>
>
>
>
> loadInstance(org.apache.isis.runtimes.dflt.runtime.fixturedomainservice.ObjectFixtureFilePersistorTest):
> expected:<Mon Mar 08 06:30:00 IST 2010> but was:<Mon Mar 08 01:00:00 IST
> 2010>
>
>
>
> This is because my Time Zone is IST. If I set my Time Zone to GMT then the
> test passes.
>
>
>
> The error comes at this line in the class ObjectFixtureFilePersistorTest
> and method loadInstance():
>
>
>
> Assert.assertEquals(dateFormat.parse("08-Mar-2010 01:00 GMT"),
> epv.getDate());
>
>
>
> Here the epv.getData() returns date in IST and the code getting executed is
> from the SimpleEntity getDate() method
>
>
>
> Is there any way to fix this? How do we make the SimpleEntity use the UTC
> time zone instead of IST?
>
>
>
> Thanks & Regards,
>
> Mukul
>

Reply via email to