Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day Light Saving Issue #36

Open
kbirand opened this issue Oct 8, 2018 · 1 comment
Open

Day Light Saving Issue #36

kbirand opened this issue Oct 8, 2018 · 1 comment

Comments

@kbirand
Copy link

kbirand commented Oct 8, 2018

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
Copy link
Author

kbirand commented Oct 8, 2018

Never mind... just figured out that santa monica goes from PST to PDT..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant