Day Light Saving Issue
kbirand opened this issue · 1 comments
kbirand commented
When using Solar.init(for: self.datePicker.dateValue, coordinate: coordinate)
I am having inconsistent results when dls changes.. Just to be sure, does your code calculate
DLS changes or am i doing something wrong.
Just to be more clear here is my result set:
2018-10-08
Santa Monica - California
dls for santa monica = true
sunrise of Santa Monica : 06:53:32
sunset of Santa Monica : 18:28:59
Istanbul - Turkey
dls for istanbul = false
sunrise of Istanbul : 07:07:28
sunset of Istanbul : 18:35:24
2018-11-08
Santa Monica - California
dls for santa monica = false
sunrise of Santa Monica : 07:19:52 **<- Wrong + 1 Hour**
sunset of Santa Monica : 17:55:15 **<- Wrong + 1 Hour**
Istanbul - Turkey
dls for istanbul = false
sunrise of Istanbul : 07:42:44
sunset of Istanbul : 17:52:28
if you need the project : https://github.com/kbirand/SolarTest
Thanks,
Koray Birand
kbirand commented
Never mind... just figured out that santa monica goes from PST to PDT..