If local time variable will be less then 0, in method SolarEventCalculator.getLocalTimeAsCalendar(), result will be incorrect.
Thanks for reporting this.
Do you have a use case for the error? I can duplicate it in a unit test but can't replicate the condition using real-world test data.
I found this issue when I tried to calculate official sunrise time for my place (Novosibirsk, Russia) yesterday.
latitude = 55.03
longitude = 82.91
date = 07 may 2012
correct sunrise time is 22:35 GMT
Fix for issue #2: Error computing sunrise for a different timezone wh…
…en sunrise occurs on a different day. Added testdata for this case with Lat/Long of Novosibirsk, Russia and target timezone of GMT.
The latest commit fixes this issue.