I know that CRON_TZ=
will set the timezone cron runs for all commands.
However, I'd like for some cron entries, not all, to run on specific timezones.
Is this possible? If not directly possible, do you have any (hackish) workarounds?
I know that CRON_TZ=
will set the timezone cron runs for all commands.
However, I'd like for some cron entries, not all, to run on specific timezones.
Is this possible? If not directly possible, do you have any (hackish) workarounds?
Use systemd timers instead! They're far better than cronjobs from a manageability perspective, and they do support timezones per timer. From
man 7 systemd.time
, which documents the time formats used in systemd timers and other files, the list of examples include items like:Earlier in the manpage, it is specified that timezones can be: