From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adam T. Bowen" Subject: Re: shell reported time different for root , and user ... Date: Tue, 29 Jan 2008 10:50:31 +0000 Message-ID: <479F04F7.6070402@agitate.org.uk> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=vO9uPhFzN8KcWF2HS6y8h3LGIZLMd94zOXf9FG2NM/Q=; b=OGhlQ3bgnKyslmEu3vwAei1PA/FEQPVBf0pgueJzwmTWhixa3G9FmXZhvKdFrzUSYG8VpFPnvFhWNg//EGaaaqiqggs2tnlDUuPXJz4x5ZgdymdSQGsuJNKUObpLjF6qs425qo3ya/T81FS4+P+i96YdPmEunJunJlSzIfaJviI= In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin terry white wrote: > i have a prompt that looks like: > > "yossarian - 01:35:40 - tty8 > [ root ] /usr/share/zoneinfo > #" > > on another system. 'date' offers the correct time. however, when i > login as 'twhite' the time given is UTC, but 'date' offers the correct > time. > > i've made "localtime" 'America/Los_Angeles', and 'PST8PDT", with > "etc/sysconfig/clock" set as both the above, and still unable to get > it to work, and worse yet, figure out what i'm missing. Has twhite got a timezone set using the TZ environment variable? You could try putting a couple of date commands in the shell rc file around where you set the prompt and see what timezone is reported when you start a new shell. What is your /etc/localtime file set to? If it is a soft-link what timezone file is it pointing to? If it is a binary file, what does: tail -1 /etc/localtime give you? Cheers Adam