]> git.proxmox.com Git - systemd.git/commit
backport calendarspec fix for reverse DST change and safety net
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 26 Mar 2023 09:43:15 +0000 (11:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 26 Mar 2023 09:53:18 +0000 (11:53 +0200)
commite7eb2b5864cc374f9559e54147d5e4dbc9b6f059
tree0e4447f18a7e81ae22b2fe90a7800944b3187e6d
parent845dce52e70f7fe6cb05c1dd8a6a0005e7ee659c
backport calendarspec fix for reverse DST change and safety net

backport a patch that copes with mktime moving backward for change to
"summer time" like the Ireland/Dubline TZ (uniquely) does, as for
them the summer time is the standard time. And such, IIUC the
algorithm was caught in an endless loop as basically it continued to
jump back before the time change and redid that time change; this is
not a problem for other TZ as they got the standard time switched and
such time only "moves back" on switch from DST to standard time,
where the switch then doesn't happen anymore.

Additionally add a safety net that aborts calendar spec calculation
after 1000 iterations.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/patches/proxmox/0001-shared-calendarspec-abort-calculation-after-1000-ite.patch [new file with mode: 0644]
debian/patches/proxmox/0002-shared-calendarspec-when-mktime-moves-us-backwards-j.patch [new file with mode: 0644]
debian/patches/series