Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRON_TZ=UTC jobs at 01:00 - 01:59 UTC never run when clocks go back #124

Open
michaeljaboyd opened this issue Nov 9, 2022 · 0 comments
Open

Comments

@michaeljaboyd
Copy link

michaeljaboyd commented Nov 9, 2022

The follow crontab entries

SHELL=/bin/bash
CRON_TZ=UTC
59 00 * * * echo "1) $(date)" >> /home/user1/michaels_crontab.txt
30 01 * * * echo "2) $(date)" >> /home/user1/michaels_crontab.txt
59 01 * * * echo "3) $(date)" >> /home/user1/michaels_crontab.txt
00 01 * * * echo "4) $(date)" >> /home/user1/michaels_crontab.txt
00 02 * * * echo "5) $(date)" >> /home/user1/michaels_crontab.txt
01 01 * * * echo "6) $(date)" >> /home/user1/michaels_crontab.txt

at the following time (and other years).

Local time: Sun 2022-10-30 00:50:54 BST
Universal time: Sat 2022-10-29 23:50:54 UTC
RTC time: Sat 2017-05-06 11:04:17
Time zone: Europe/London (BST, +0100)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2022-03-27 00:59:59 GMT
Sun 2022-03-27 02:00:00 BST
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2022-10-30 01:59:59 BST
Sun 2022-10-30 01:00:00 GMT

After waiting a few hours will result in the following output in /home/user1/michaels_crontab.txt

  1. Sun 30 Oct 01:59:01 BST 2022
  2. Sun 30 Oct 02:00:02 GMT 2022

I would expect to have all 6 cron entries to run and output to the file.

I have tested on centos7 cronie version 1.4.11 and AlmaLinux 9.0 cronie version 1.5.7

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants