iamriajul / adhan-dart

Adhan for Dart / Muslim Prayer Times Library. Now retrieving Prayer time in Dart easier than ever.
https://pub.dev/packages/adhan
MIT License
86 stars 41 forks source link

[Bug] #26

Closed 15tariqj closed 3 years ago

15tariqj commented 3 years ago

Describe the bug Prayer times with the Muslim World League parameters appear to be incorrect.

To Reproduce Steps to reproduce the behavior: Create a PrayerTimes object with coordinates (51.5074, 0.1278) [The coordinates of London] and DateComponents(2021, 5, 26), and the Muslim World League parameters, like so: PrayerTimes( Coordinates(51.5074, 0.1278), DateComponents(2021, 5, 26), CalculationMethod.muslim_world_league.getParameters(), ) Then print out the DateTime objects for Fajr and Isha, and you'll end up with the following: flutter: 2021-05-26 00:57:00.000 flutter: 2021-05-27 00:31:00.000

Expected behavior These prayer times are incorrect, and according to IslamicFinder.org with the same coordinates and calculation method, the following should be output instead: Screenshot 2021-04-26 at 14 09 26

Environment(please complete the following information):

Perhaps there is a way to alleviate this issue/a setting that I have not been using, in which case I apologise. Jazakallah for developing this package and may Allah reward you!

15tariqj commented 3 years ago

Apologies! This appears to be resolved by setting a HighLatitudeRule of twighlight_angle