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

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

Open
ranasadam opened this issue Jun 22, 2017 · 2 comments
Open

Comments

@ranasadam
Copy link

ranasadam commented Jun 22, 2017

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.

@fikr4n
Copy link
Owner

fikr4n commented Jul 10, 2017

Could you provide the inputs and the expected outputs?

@ranasadam
Copy link
Author

ranasadam commented Jul 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants