Hi, we have a server which when we check time it has different time for different user. When we're using root user, the time is correct but when we login as individual user the time is delayed 1 hour. How can we correct the time when we're using individual user like my own user? Please help me to correct it. Thanks!
Time using root user:
root :Notif2 # date
Tuesday February 10 16:28:17 CET 2009
Time using my user:
bash-2.03$ date
Tuesday February 10 15:32:18 Africa/Algiers 2009
I dont think you have any time problem, you are being fooled by your time zone settings...
looks like root is set UTC -CET and users to local time zone (but not sure, where are you??)
To answer your question, there is a timezone variable called TZ, that is what you need to set properly...
Thanks! I'm in Algiers. How can I correct the timezone settings for the individual users? As only root user has the correct time. Sorry I'm new to unix that's why I don't know how I can correct it.
What OS is it?
on HP-UX:
ant:/home/vbe $ date
Tue Feb 10 18:01:00 MET 2009
ant:/home/vbe $ echo $TZ
MET-1METDST
ant:/home/vbe $ TZ=CET
ant:/home/vbe $ date
Tue Feb 10 17:01:13 CET 2009
ant:/home/vbe $
As you can see how I set TZ to CET, if that is what you want , just add it in your .profile...
(My timezone is for Switzerland, France...)