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] |
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 |
All times are GMT -5. The time now is 11:24 PM. |