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

[Question] Why adhan-dart is giving plus 1hr for Asr time #25

Closed MZDN closed 3 years ago

MZDN commented 3 years ago

I noticed that the adhan-dart is giving plus 1hr for Asr time. For example I was expecting to give 17:15 instead of 18:15. Do you know why?

final params = CalculationMethod.karachi.getParameters(); params.madhab = Madhab.hanafi; prayerTimes = PrayerTimes.today(myCoordinates, params, utcOffset: _dateTime.timeZoneOffset);

iamriajul commented 3 years ago

Assalamualaikum, You might want to change the Madhab. as Asr calculations vary much by Madhab. Another thing to keep in mind: If you want the PrayerTime result in your device timezone then don't pass utc-offset. Thanks.

MZDN commented 3 years ago

That fixed it. Many thanks @iamriajul !