Scheduled parity check suddenly no longer starting (Possibly Daylight Saving Time Related)


ssh

Recommended Posts

I have my parity check scheduled to run on the last day of each month at 0:00. This always ran fine (for multiple years), except for today when it suddenly did not. It didn't start at 0:00. I've waited till 01:05, but it never started.

 

Looking at the root file in /etc/cron.d it shows that "the last day of the month" is calculated as follows: [[ $(date +%e -d +1day) -eq 1 ]].

 

I suspect this to be an issue with the fact that today is the day when daylight saving time ends, as 31st 0:00 + 1 day will probably result in 31st 23:00, getting just the day value of that is 31 which is not equal to 1, so the cron job results in false and won't run.

 

Screenshot 2021-10-31 at 01.10.16.png

Edited by ssh
Spelling
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.