[Bug 858583] Re: cron is not timezone aware on per line base
Rostislav
858583 at bugs.launchpad.net
Tue Jun 9 07:55:33 UTC 2020
The issue is still there in 20.04: cron ignores CRON_TZ in crontab.
Suse cron respects CRON_TZ variable.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/858583
Title:
cron is not timezone aware on per line base
Status in cron package in Ubuntu:
Confirmed
Bug description:
We need to specify many different cronjobs in many different timezones
http://blogs.oracle.com/chrisg/entry/timezone_aware_cron_finally_pushed
OpenSolaris finally contains a version of cron that understands and correctly handles having different timezones. You can also specify a different home directory (useful when you don't want NFS to get involved in your cron job for any reason) and shell to run jobs in. It should be in build 106 of OpenSolaris & Nevada.
This brings you crontab in line with at(1) which has been timezone aware for some time.
To use simply set the variables HOME, TZ and SHELL in your crontab file and all subsequent lines will use those values until the next HOME, TZ and SHELL lines are found:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/858583/+subscriptions
More information about the foundations-bugs
mailing list