johanley / astro

Full source for astronomytonight.net, a site for amateur astronomers. The site has basic astronomy data for any location, and weather data for specific countries (the US and Canada). Customizable for your observing location.
BSD 2-Clause "Simplified" License
3 stars 0 forks source link

Time Zones #15

Open johanley opened 7 years ago

johanley commented 7 years ago

At present, when the user views data for a location in another time zone, the times (and some dates) are erroneous. This is a result of how, by default, javascript treats time zones.

Do we do anything about this? Or leave it alone?

johanley commented 7 years ago

It's probably difficult to fix. But I may be wrong. The 'when' objects in ephem.js would need to change. The changes may prove difficult, even with some js library doing the hard work.

When you start dealing with time zones, you necessarily need to deal with data-sets that define them. Those data-sets are big, and they change often.