2 comments

[ 0.29 ms ] story [ 9.2 ms ] thread
It can work, but not very graceful, although in some cases it may have potential risk like the AEDT (Australian Eastern Daylight Time) shift, there could be no 2:00. A better way could be only compare the date. If it is different from the the last running date, the task can run, else, it should wait. The Chromium fix also has a chance to fail if we migrate to Mars or some other planet ;-)
> the above function uses base::Days(1) to represent exactly 24 hours

Isn't this false? I don't know this code, but I would assume Days(1) to be 1 day, not 24 hours, and adding 1 day would be aware of DST and handle the 25-hour day correctly.