From: Hansville, WA, USA
Although honestly, most scenarios aren't so large that these things matter hugely.
That's a good point - not worldwide and probably a couple of days at the most.
A little research on the author's part could determine the sunrise, sunset that would be associated with a particular scenario's based on its location and season then a simple time check would determine if the sensor should be on or off.
“There is no limit to what a man can do so long as he does not care a straw who gets the credit for it.”
Charles Edward Montague, English novelist and essayist
~Disenchantment, ch. 15 (1922)