janrg / MeeusSunMoon

JavaScript module to calculate times for sunrise, solar noon, and sunset, as well as moon phases based on "Astronomical Algorithms" by Jean Meeus
MIT License
31 stars 9 forks source link

DST Corrections #33

Closed scgrant327 closed 2 years ago

scgrant327 commented 2 years ago

I am using MeeusSunMoon and love it.. However, I have noticed this year that the current time change is not being reflected in returned times for Sunrise & Sunset. It is still showing the 'spring forward' times instead of the 'fall back' times. How do we fix that?

scgrant327 commented 2 years ago

My fault. Was not setting timezone correctly (using cached offset instead of new offset)