Different whenever and server's timezones

时间:2017-12-18 07:50:07

标签: ruby-on-rails cron whenever

My server's timezone is set to IST. And all my jobs scheduled are delayed by 5 hrs 30 min (deviation from GMT). I have followed this thread https://github.com/javan/whenever/pull/239 and tried all relevant patches, but none of them worked for me. Which timezone does whenever pick for its jobs?

1 个答案:

答案 0 :(得分:0)

我猜您的Web服务器/ rails服务器与系统TZ(您在命令行中运行date时的那个)不同。

您可能希望将两个时区设置为相同的值。

有关详细信息,请参阅https://www.cyberciti.biz/faq/linux-unix-set-tz-environment-variable/