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

Times incorrect? #16

Closed parasanger closed 8 years ago

parasanger commented 8 years ago

Is this a case of GIGO, or a bug. Ie, should the TZ used by the lib encompass the TZ of the lat/long

LAT=37.485215 // in redwood city california LONG=-122.2363 // TZ = CEST // Copenhagen

correct TZ is in PST for that lat/long

this is for 3/30 and 3/31. Sunrise on the 31st, sunset on the 30th

calculated values: sunrise Wed Mar 30 04:31:00 CEST 2016 sunset Thu Mar 31 15:55:00 CEST 2016

Looking up the correct sunrise/sunset on datetime.com

sunrise 3/30 04:32 sunset 3/31 21:50

Sunset looks a little off.