Package: cron Version: 3.0pl1-153 Severity: minor Tags: patch Dear Maintainer(s),
The patch below makes the following improvements to No-multiple-timezones.patch: 1) Fix bashism 2) Use TZ=UTC, as in original Bug #166533 3) Use nroff \e for backslash 4) Simplify time comparison Thank you! Daniel Lewart Urbana, Illinois --- diff -ru a/debian/patches/features/No-multiple-timezones.patch b/debian/patches/features/No-multiple-timezones.patch --- a/debian/patches/features/No-multiple-timezones.patch 2022-11-28 09:33:00.000000000 -0600 +++ b/debian/patches/features/No-multiple-timezones.patch 2022-12-06 00:00:00.000000000 -0600 @@ -18,11 +18,9 @@ +for example: + +.nf -+ # m h dom mon dow command -+ -+ SHELL=/bin/bash -+ TZ=Australia/Sydney -+ 0 * * * * [ "$(date +\\%H\\%M)" == "0000" ] && run_some_script ++ SHELL=/bin/sh ++ TZ=UTC ++ 0 * * * * [ "$(date +\e%R)" = 00:00 ] && run_some_script +.fi POSIX specifies that the day of month and the day of week fields both need to