操作系统:Ubuntu 18.04
Cron:cron/bionic,现在为 3.0pl1-128.1ubuntu1 amd64
系统时区为:America/Los_Angeles (PST)
我想将特定作业的执行时间的时区(不是脚本的时区)设置为美国/纽约(EST)。
例如:我希望脚本在下午 3 点(EST-New_York)执行,也就是下午 12 点(PST-Los_Angeles,本地系统时间)
尝试过,但没有成功:
0 15 * * * CRON_TZ=America/New_York /script/path/here
0 15 * * * CRON_TZ="America/New_York" /script/path/here
0 15 * * * TZ=America/New_York /script/path/here
0 15 * * * TZ="America/New_York" /script/path/here
0 15 * * * CRON_TZ=America/New_York /script/path/here
CRON_TZ="America/New_York"
0 15 * * * /script/path/here
CRON_TZ=America/New_York
0 15 * * * /script/path/here
TZ="America/New_York"
0 15 * * * /script/path/here
TZ=America/New_York
0 15 * * * /script/path/here
有办法解决这个问题吗?