itl-java icon indicating copy to clipboard operation
itl-java copied to clipboard

When I set location of Amsterdam It is not calculating accurately.

Open ranasadam opened this issue 7 years ago • 2 comments

I am using this library in android to calculate prayer timings. While calculating prayer time for different locations of Europe and America. Library is not returning exact values I changed the time zone of mobile but result is same also use hard coded value for the latitude and longitude but all in vein.

Looking for positive response. Thanks in advance.

ranasadam avatar Jun 22 '17 10:06 ranasadam

Could you provide the inputs and the expected outputs?

fikr4n avatar Jul 10 '17 07:07 fikr4n

Inputs

    Prayer calculator = new Prayer()
            .setMethod(StandardMethod.MUSLIM_LEAGUE)
            .setLocation(52.3702, 4.8952, 0)
            .setDate(new Date(),TimeZone.getTimeZone("Europe/Amsterdam"));

   
    calculator.setMethod(Method.fromStandard(StandardMethod.MUSLIM_LEAGUE)
            .setUseOffset(false));

Output

Fajr 01:00 Shurooq 05:30 Zuhr 13:45 Assr 18:06 Maghrib 21:58 Ishaa 07:00

Expected Output

Fajr 03:14 Sunrise 05:32 Dhuhr 13:46 Asr 18:07 Maghrib 22:00 Isha'a 00:08

ranasadam avatar Jul 11 '17 07:07 ranasadam