Hello!
I have found a systematic issue:
double lat = -17.803; // fiji, nadi
double lon = 177.416;// fiji, nadi
int y = 2022;
int m = 9;
int d = 27;
calcSunriseSunset(y, m, d, lat, lon, transit, sunrise, sunset, SUNRISESET_STD_ALTITUDE, 2);
The function returns sunrise = -6.062. This is correct. However , if we set m = 10, the next month, the sunrise value jumps to 17.560. If I feed it UTC time, the date differs when the «jump» to a sunrise at 17h occurs. I tried the function with different iteration levels: 1, 5, 10... Nothing helped.
I found a similar thing happens for other locations in Fiji, and in Funafuti [Tuvalu], Apia [Samoa], Nuku'alofa [Tonga] and others. But, at different dates.
Please let me know if you can confirm the bug. Thank you .
Best regards, Marius.