1847307 Members
3078 Online
110264 Solutions
New Discussion

Re: local time

 
SOLVED
Go to solution
svilen888
Occasional Advisor

local time

Please help me to establish equal time to
all my HP-UX mashines. A few days ago our
time was changed 1 hour low. So I have changed a time with "date" on my mashines.
So today 2-3 of them was changed his own time
by itselves. Other mashines keep their time. So I need again to re-change time. Please help me to control local time.
My Time Zone is GMT+2.
liana
4 REPLIES 4
Fabio Ettore
Honored Contributor

Re: local time

Hi,

make sure to have al systems with timezone set correctly:

# echo $TZ
EET-2EETDST
# cat /etc/TIMEZONE
TZ=EET-2EETDST
export TZ

After that you can set the same time on systems as Sanjay suggested, that is NTP.

HTH.

Best regards,
Ettore
WISH? IMPROVEMENT!
Sanjay Kumar Suri
Honored Contributor

Re: local time

Look at this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=500591

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: local time

You have two different problems:
1) Use NTP to synchronize the UTC times among all the boxes (as well as the rest of the world). Read the NTP_Primer.txt in /usr/share/doc; it will take you through the entire setup process.

2) You have different timeszone settings (or different /usr/lib/tztab settings. Make sure that /etc/TIMEZONE are the same and make sure that the entries in /usr/lib/tztab for your timezone is the same across all machines.

You should also note that the machine really has no concept of timezones -- all of them simply count seconds since Jan 1, 1970. NTP's job is to keep that second count accurate and consistant. NTP can do that easily to a few milliseconds but the TZ setting could be specific to a given user. It's not unusual to have several TZ settings in effect on the same machine. After all, users could be logging in to the same machine from all over the world. TZ only effects how the time is displayed; not how it is stored internally.
If it ain't broke, I can fix that.