batoulapps / Adhan

High precision prayer time library
MIT License
329 stars 63 forks source link

Day light Saving settings #89

Closed msadrud closed 6 years ago

msadrud commented 6 years ago

Assalam wa laikum, I recently came across your project. Thanks for the wonderful effort. I just wanted to check if the current version of the code takes care of DST (day light savings)? Does it check if a date is in day light saving time and then accordingly adjusts the prayer times?

z3bi commented 6 years ago

It does by explicitly not dealing with time zones at all. It receives date components as the input (calendar values without time zone information) and returns date objects (time values without time zone information). You then use a date formater to display the prayer times with time zone (and DST) added.