meezaan According to Saudi Arabia, Ramdan begins on Monday, March 11, 2024 - https://www.khaleejtimes.com/ramadan/ramadan-crescent-moon-spotted-in-saudi-arabia-holy-month-begins-on-monday. UAE is also Monday - https://www.khaleejtimes.com/ramadan/ramadan-in-uae-begins-march-11-as-moon-sighted-taraweeh-prayer-details-revealed. However, other Islamic countries - Malaysia, Indonesia, Brunei and Singapore have all announced it for Tuesday, March 12, 2024 - https://www.channelnewsasia.com/singapore/ramadan-muslims-singapore-start-mar-12-4181011. Oman has also announced for Tuesday, March 12, 2024 - https://www.khaleejtimes.com/ramadan/ramadan-2024-oman-announces-first-day-of-holy-month.
Xaibi So i have question here that how we can fix this, because on your api we get 11 mar 2024 in Pakistan but ramadan start from 12 mar 2024. As you know lots of countries started from 12 mar 2024.
Xaibi But how we can give -1 and 1 in endpoint, we are getting timings by city and country, so I have no idea about which country should have to give -1 and 1 I am playing like this http://api.aladhan.com/v1/calendarByAddress/$displayYear/3?address=$city,%20$country&method=$method
meezaan Xaibi You need to know. There is no automated way to know because there is no logic to how countries decide the dates otherwise the API would do this automatically. There is no algorithm to track governmental egos, if you know what I mean.
Xaibi Ok got it, so when we know which countries are on 1 and which are -1 then we have to work on our code for that. So what about dates is there a way for that?