In my experience some it can be interesting to write tests that compare
times, often people write tests in Europe which then fail when we run them
in North America due to timezone offset.

Options:


   1. When you look at the test is it possible to providing in GMT or Z
   time for comparison? Look at the value prior to toString().
   2. I am not sure if it is a bug in the code, in the test, or worst case
   in the file format specification?

--
Jody Garnett


On Dec 19, 2023 at 9:03:50 AM, pierre.cardi...@sympatico.ca wrote:

> Hi,
>
>
>
> What is wrong with my settings ?
>
>
>
> When I run « mvn install », I have the following error:
>
>
>
> NetCDF gridcoverage module FAILURE
>
>
>
> To correct the problem I have to change the function
>  testGranuleSourceFileView() in the file NetCDFMosaicReaderTest.java.
>
>
>
> The two lines :
>
>              assertEquals("2017-02-06 00:00:00.0",
> nc1.getAttribute("time").toString());
>
>              assertEquals("2017-02-06 12:00:00.0",
> nc2.getAttribute("time").toString());
>
>
>
> should be change for
>
>             assertEquals("2017-02-05 19:00:00.0",
> nc1.getAttribute("time").toString());
>
>             assertEquals("2017-02-06 07:00:00.0",
> nc2.getAttribute("time").toString());
>
>
>
>
>
> My computer is in the zone (UTC -05:00)  East (USA and Canada). It is
> exactly the difference of time shown previously.
>
>
>
>
>
> Regards,
>
>
>
>
>
> Pierre
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to