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

Adhan package Return wrong time on different timezone #53

Closed ariona closed 8 months ago

ariona commented 8 months ago

Describe the bug Adhan package return wrong prayer times, it added two hour to real time/other prayer time app.

To Reproduce Steps to reproduce the behavior:

  1. Set Coordinate to: -6.2297419, 106.7594778
  2. Set Date Time on device to Indonesia, Time Zone Jayapura (GMT+09:00)
  3. Set params to
    CalculationParameters(
    madhab: Madhab.shafi,
    fajrAngle: 20,
    ishaAngle: 18,
    highLatitudeRule: HighLatitudeRule.twilight_angle,
    )
  4. get prayer times using PrayerTimes class
  5. prayer times return +2 hours

Screenshots Here is the screenshot from my app

Screenshot 2023-12-18 at 14 57 31

And here is screenshot of prayer times of same city on online prayer time

Screenshot 2023-12-18 at 14 58 09

You can see that this package return +2 hours to the desired time

Environment(please complete the following information):

iamriajul commented 8 months ago

@ariona how did you solve your issue?

ariona commented 8 months ago

Turn out the coordinate variable didn't update with the requested location 😔

It should be working now, Jazakallah..

On Sun, Dec 24, 2023, 11:24 AM Riajul Islam @.***> wrote:

@ariona https://github.com/ariona how did you solve your issue?

— Reply to this email directly, view it on GitHub https://github.com/iamriajul/adhan-dart/issues/53#issuecomment-1868429798, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFXWY2M4IJSYPRHQG3CBKLYK6U7ZAVCNFSM6AAAAABAZDEOYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGQZDSNZZHA . You are receiving this because you were mentioned.Message ID: @.***>