LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-14-2004, 03:27 PM   #1
yjiang
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
about time display in redhat 9


Hi,
I am running a problem with my redhat 9 desktop. one day user showed the different time from the root did. here is the output for user and root using them same command: date, and clock.

oric_yj[1]date
Thu Oct 14 20:25:22 UTC 2004
oric_yj[2]su
Password:
[root@oric Desktop]# date
Thu Oct 14 13:25:30 PDT 2004

oric_yj[3]clock
Thu 14 Oct 2004 01:25:39 PM UTC -0.133247 seconds
[root@oric Desktop]# clock
Thu 14 Oct 2004 01:25:34 PM PDT -0.757379 seconds
[root@oric Desktop]# exit

user's date showed 7 hours' ahead. any ideas ?
thank you for your attention.

yong


oric_yj[4]
 
Old 10-26-2004, 11:02 PM   #2
kvedaa
Member
 
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
If you look closely you will see that the timezone for the user and root are different. The user is set to UTC (Zulu time as the Marine Corps like to refer to it) where as root is set to PDC (Pacific Daylight Time) such as the time in Washington State. These timezones are off by seven hours which accounts for the apparent time difference between these two users (actual time is the same).

If memory serves their are a couple places that the timezone setting can be set. For individual users look in their .bashrc or .bash_profile, for system defaults look in the following

/etc/profile
or
/etc/localtime

Good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
display time in the prompt rpb Linux - General 1 05-18-2005 04:03 PM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 06:24 AM
xlsfonts is dependant on DISPLAY setting not working on one display with Redhat iainsear Linux - General 0 12-21-2004 06:19 AM
Display the date and time from another time zone lothario Linux - Software 4 07-31-2004 03:27 PM
Telling ls to display one screen at a time rl5 Linux - Newbie 3 03-23-2004 07:29 PM


All times are GMT -5. The time now is 08:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration