Time zone change confuses cron

Danny Howard dannyman at toldme.com
Mon Mar 28 16:08:25 PST 2005


Ladislav Bodnar wrote:

>Hi,
>
>I've just changed the system time zone from local time to UTC by 
>copying /usr/share/zoneinfo/Etc/UTC to /etc/localtime. To my dismay, I 
>found that crontab (both /etc/crontab and user-level crontab) completely 
>ignores the change and continues executing scripts according to the old 
>time.
>
>What am I doing wrong?
>
To my knowledge, timezone is taken from the environment when a process 
starts.  If you want cron to honor the new timezone, restart cron, or 
set the TZ explicitly in the relevant crontab.

-danny

-- 
http://dannyman.toldme.com/



More information about the freebsd-stable mailing list