mikereedell / sunrisesunsetlib-java

Library for computing the sunrise/sunset from GPS coordinates and a date, in Java.
http://mikereedell.github.com/sunrisesunsetlib-java/
Apache License 2.0
299 stars 69 forks source link

Current tests failed #3

Open n0rad opened 11 years ago

n0rad commented 11 years ago

Failed tests: testRiseAndSetTimes(com.luckycatlabs.sunrisesunset.SunriseSunsetDataTest): Expected: 04:48, but was: 05:48 for date: 4/06/2008

Can you fix it? I want to use your lib

mikereedell commented 11 years ago

What are the latitude/longitude coordinates you are using in the computation?

n0rad commented 11 years ago

I'm just running the tests with maven so If it does not fail for you it must be because your tests vary on user timezone. but it shouldn't.

I'm in Paris, so i'm running it with GMT+1

mikereedell commented 11 years ago

The tests indeed pass for me so they must be relying on the systems timezone. I'll get a fix in as soon as possible.

mikereedell commented 11 years ago

I changed my mac to be in the CET timezone and the tests still run. What version of java are you using? Post the full output of java --version if you can. The timezone databases in the JVM get updated quite often.