wfwalker / opensun

light angle calculator for wildlife and landscape photographer
https://wfwalker.github.io/opensun/
3 stars 2 forks source link

time zones <sigh> #26

Open kbrosnan opened 9 years ago

kbrosnan commented 9 years ago

Played with the site. Tried checking the sun for a future date in the eastern time zone while I am in PST.

Steps: Be in non-eastern time ex Pacific Navigate to Boston, MA Set the time to the local time you are interested in ex 16:00 Set the date to October 10th

Results: Site tells you that it will be dark Change time to 13:00 Site tells you prime hours for shooting

Seems that the site uses the current user's time zone. Would be good to clarify that it is the user's current time zone or use the location time zone.

wfwalker commented 9 years ago

Thanks for the detailed report. This is a great idea -- the site should totally be using the timezone for the location you have navigated to on the map. So far, I have not been able to find a service that tells me the timezone for a given latitude and longitude. When I find that, I should be able to do this.

wfwalker commented 9 years ago

I could use https://askgeo.com/

wfwalker commented 9 years ago

or i could use https://developers.google.com/maps/documentation/timezone/intro

wfwalker commented 9 years ago

or i could use http://timezonedb.com/api

wfwalker commented 9 years ago

and there's also http://api.geonames.org/timezoneJSON?lat=47.01&lng=10.2&username=demo so I guess it wasn't as hard as I thought to find such a thing. OK, I'll look into it.