Created attachment 8427 Image of the problem In time zone Japan - UTC +9, the panel plugin shows night icons during the day, and day icons during the night.
I can confirm this bug...icons displayed should be based on "local time" -- not UTC.
I can also confirm this bug. It is surprisingly irritating. I'm in Australia.
I'm having the same problem here. I'm in Japan, now it's 11:48 am, very sunny, and the icon is a moon...
Created attachment 8836 Patch for parsing of sunrise API data I think this patch should fix it, the times from the sunrise API seemed to have been converted to UTC, but not back to localtime for the call to is_night_time, which then determines the icon. I've verified that the astro->sunrise/sunset times are now actual local times, but I'm not sure if the patch screws up anything else (such as the cache), it'd be great if someone could test it.
Goran Thanks for the patch. I can test it, but I'm not sure how. Where do I add the code?
I would like to test the patch too, but have no idea how. There is any step-by-step that teaches how, from downloading the source code to making it work?
Created attachment 8978 Weather plugin patch for local time.
Comment on attachment 8978 Weather plugin patch for local time. Download the weather plugin here : https://github.com/xfce-mirror/xfce4-weather-plugin then unzip the attachment in the panel-plugin folder to replace the files. Then compile and install. This patch fixed the problem for me.
I didn't notice this bug report, so submitted a patch to https://bugzilla.xfce.org/show_bug.cgi?id=16091 (there is the same issue). (In reply to deadown from comment #8) > This patch fixed the problem for me. Not only sunset/sunrise time need to be fixed, the moonrise/moonset times should be fixed too.
This is still a regression bug in the new version xfce4-weather-plugin 0.10.1-1. Any update? ☹️
Fixed in #16091 *** This bug has been marked as a duplicate of bug 16091 ***