bluefireteam / daylight

Get the sunset and sunrise times for a geolocation without having to access any api.
MIT License
59 stars 12 forks source link

Does not properly calculate events #9

Open spacekestrel opened 3 years ago

spacekestrel commented 3 years ago

Have tried using package with very basic implementation, but is seems always gets data wrong to 3 hours. I think it doesn't calculate UTC + hours. Do i need to do it myself and if so, how better achieve this?

renancaraujo commented 5 months ago

It is hard to provide dates with timezones offsets specially because timezones keep chaging. To convert a UTC datetime to a lozalized datetime, I would sue the timezones package.