batoulapps / adhan-kotlin

High precision Islamic prayer time library for Java
MIT License
162 stars 47 forks source link

java and swift have time difference on the same location #38

Closed Bilalwarind closed 1 year ago

Bilalwarind commented 2 years ago

while using library for both swift and java getting 3 to 10 minutes difference on android and ios devices on the same location. like while testing it in London ===> Prayer times on android and ios Andriod fajr 4.58. ios 5.01

Dhuhr andriod 12.16 ios 12.12

Asr andriod 03.13. Ios 03.13

Maghrib andriod 05.56 ios 05.53

Isha'a Andriod 07.13 IOS 07.24

walida890 commented 2 years ago

This is for the moonsighting method.

z3bi commented 2 years ago

@walida890 the most likely issue is a difference in how the calculation parameters are being setup. Can you post your java code and your swift code for how you're creating the CalculationParameters, coordinates, and your call to create the prayer times.

Bilalwarind commented 2 years ago

WhatsApp Image 2022-03-15 at 9 53 29 PM WhatsApp Image 2022-03-15 at 9 53 31 PM

here it is swift

Bilalwarind commented 2 years ago

java java2

here it is java

ahmedre commented 2 years ago

It looks like the calculation method is different between your Swift example and your Java example. May you double check it?

ahmedre commented 1 year ago

closing for now, please reopen if this is still an issue.