ceeK / Solar

A Swift micro library for generating Sunrise and Sunset times.
MIT License
568 stars 82 forks source link

Remove need for supplying timezone #12

Closed ceeK closed 7 years ago

ceeK commented 8 years ago

It seems as if the timezone shouldn't strictly be necessary. If we calculate the UTC time of sunrise, we should be able to convert it to the appropriate timezone within the client application.

Right now, removing the timezone results in sunrises happening in the evening of the supplied date. The sunrise obviously can't be 8pm on the 2nd April if the user supplied 2nd April.

A little bit of magic should be needed.

ceeK commented 7 years ago

Implemented as part of 2.0.0.