Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MZDN opened this issue Apr 17, 2021 · 2 comments
Closed

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

MZDN opened this issue Apr 17, 2021 · 2 comments
Labels
question Further information is requested

Comments

@MZDN
Copy link

MZDN commented Apr 17, 2021

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);

@MZDN MZDN added the question Further information is requested label Apr 17, 2021
@iamriajul
Copy link
Owner

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
Copy link
Author

MZDN commented Apr 17, 2021

That fixed it. Many thanks @iamriajul !

@MZDN MZDN closed this as completed Apr 17, 2021
@iamriajul iamriajul changed the title [Question] [Question] Why adhan-dart is giving plus 1hr for Asr time Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants