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?
答案 0 :(得分:0)
我猜您的Web服务器/ rails服务器与系统TZ(您在命令行中运行date
时的那个)不同。
您可能希望将两个时区设置为相同的值。
有关详细信息,请参阅https://www.cyberciti.biz/faq/linux-unix-set-tz-environment-variable/。