You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
Couldn't think of a title to accurately sum up the issue, but the problem here is that in UTC+8, when running the sample program with a UTC offset of 0, I get
Sunrise: 00:00:00
Sunset: 11:08:43
But this is wrong, the sunrise should be on the previous day actually in UTC, as when I set the timzeone offset to 8, I get
Sunrise: 07:00:40
Sunset: 19:08:43
and this is confirmed to be correct by other sources.
I'm using a program that uses your library, which does all its calculations in UTC, and therefore, my sunrise times are always wrong.
I took a quick look at the code but it's a bit much to process, and I decided to open an issue instead of just tackling it myself in case the solution was easy for you.
The text was updated successfully, but these errors were encountered:
I hit the same or a similar issue. My UTC offset is +2 and the sunrise/set times calculated by the library are one day behind what other sources say for my location (Hamburg, Germany). This is my test program:
Couldn't think of a title to accurately sum up the issue, but the problem here is that in UTC+8, when running the sample program with a UTC offset of 0, I get
But this is wrong, the sunrise should be on the previous day actually in UTC, as when I set the timzeone offset to 8, I get
and this is confirmed to be correct by other sources.
I'm using a program that uses your library, which does all its calculations in UTC, and therefore, my sunrise times are always wrong.
I took a quick look at the code but it's a bit much to process, and I decided to open an issue instead of just tackling it myself in case the solution was easy for you.
The text was updated successfully, but these errors were encountered: