plugins/nightlight: handle imprecise timers
Due to QTimer sometimes firing a tad bit early, transitions get skipped, or we end up in the "Error in time calculation" branch. This commit improves timer handling to avoid this.
Edited by Ambareesh Balaji