mustafaunlu When making the following API request: https://api.aladhan.com/v1/timingsByCity/23-11-2024?city=Karaman&country=Turkey&method=13&tune=0,10,0,0,-40,0,0,0,0&school=1, I noticed that the tune parameter works correctly for adjusting the Fajr time (+10 minutes) but does not seem to affect the Asr time (-40 minutes). Could you explain why this happens?
meezaan mustafaunlu It's because for method 13, the tune parameters are hard coded to try and match the Diyanet calculation. https://github.com/islamic-network/api.aladhan.com/blob/master/api/Utils/PrayerTimesHelper.php#L343. Which is not great. It should only do that if there is no value specified for tuning. Can you please open an issue on https://github.com/islamic-network/api.aladhan.com/issues regarding this. I have an idea on how to fix this, so I'll try and look at it this coming week, inshaAllah.
meezaan mustafaunlu Salaam. Please see https://github.com/islamic-network/api.aladhan.com/pull/81 and let me know if you think this works, or if you want add your adjustment on top of the adjusted timings instead.