]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/timer.c
core: don't freeze OnCalendar= timer units when the clock goes back a lot 8237/head
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Wed, 28 Feb 2018 16:03:43 +0000 (16:03 +0000)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Wed, 28 Feb 2018 17:00:07 +0000 (17:00 +0000)
commit13f512d324e9e9be7286391347a185b716f0707c
tree117bad0e01d3f42d10fd93555ac8070a1a8fc8ea
parent9ea9faff7866ac7aaa2dc529fb92c5cdd643fc04
core: don't freeze OnCalendar= timer units when the clock goes back a lot

E.g. if you have a monthly event and you set the computer clock back one
year, we can allow the next 12 monthly events to happen naturally.  In fact
we already do this when you start a Persistent=yes timer, we just need to
apply the same logic when it's running and we notice the system clock
being set backwards.
src/core/timer.c