GNOME Bugzilla – Bug 781150
night light: update sunset/sunrise before enabling/disabling night light
Last modified: 2018-03-16 18:07:15 UTC
Currently the sunset changes with various minutes each day. I just noticed gnome-shell enabling Night Light, then disabling it for a few minutes, then enable it again. I assume this is due to updating the sunset just after enabling night light; noticing it's a few minutes later today and therefore delaying the start with a few minutes. Please update sunset/sunrise before taking any action.
The actual night light functionality is implemented in gnome-settings-daemon's color plugin, so reassigning.
The calculation looks sane in this regard. The likely explanation is that your location changed causing the sunset/sunrise to be re-calculated. Note that location changes are now throttled to once per hour, so this is much less likely to happen. Commit in question: Attachment 356300 [details] pushed as 991e82f - color: Request location updates with a larger time granularity *** This bug has been marked as a duplicate of bug 785342 ***