From owner-freebsd-stable@FreeBSD.ORG Tue Mar 29 00:08:24 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E79F016A4CE for ; Tue, 29 Mar 2005 00:08:24 +0000 (GMT) Received: from shiva.nextrials.com (shiva.nextrials.com [64.81.74.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4B0C43D1D for ; Tue, 29 Mar 2005 00:08:24 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from [192.168.1.102] (mito.sr.nextrials.com [192.168.1.102]) by shiva.nextrials.com (Postfix) with ESMTP id 004573C282A; Mon, 28 Mar 2005 16:08:23 -0800 (PST) Message-ID: <42489C70.2020306@toldme.com> Date: Mon, 28 Mar 2005 16:08:16 -0800 From: Danny Howard User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050328) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ladislav Bodnar References: <200503290758.14387.distro.watch@msa.hinet.net> In-Reply-To: <200503290758.14387.distro.watch@msa.hinet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: Time zone change confuses cron X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2005 00:08:25 -0000 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/