Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2005 16:08:16 -0800
From:      Danny Howard <dannyman@toldme.com>
To:        Ladislav Bodnar <distro.watch@msa.hinet.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Time zone change confuses cron
Message-ID:  <42489C70.2020306@toldme.com>
In-Reply-To: <200503290758.14387.distro.watch@msa.hinet.net>
References:  <200503290758.14387.distro.watch@msa.hinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42489C70.2020306>