From: "Adam T. Bowen" <adamb@agitate.org.uk>
To: linux-admin <linux-admin@vger.kernel.org>
Subject: Re: shell reported time different for root , and user ...
Date: Tue, 29 Jan 2008 10:50:31 +0000 [thread overview]
Message-ID: <479F04F7.6070402@agitate.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.58.0801290141440.7101@yossarian.aniota.com>
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
next prev parent reply other threads:[~2008-01-29 10:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-29 9:55 shell reported time different for root , and user terry white
2008-01-29 10:50 ` Adam T. Bowen [this message]
2008-01-29 16:05 ` terry white
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=479F04F7.6070402@agitate.org.uk \
--to=adamb@agitate.org.uk \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.