osmandapp/Osmand — pull request #92 by goedson (2011-10-11 02:14:51+00:00)
Title: Fix calculation of Sunrise and Sunset times

In my timezone (GMT-03:00, Brazilian Standard Time), osmand switches from Day to night mode too early (between 12:00 and 13:00).

I've done some experimentations with SunriseSunset and now it seems to work fine. This patch includes the changes I had to make to get it working.

Fixed the Sunrise/Sunset time calculation by:

- Inverting signal of timezone offset when calling SunriseSunset's
constructor in DayNightHelper
- Properly formating the timezone offset when parsing the times in
SunriseSunset's calculations