1836612 Members
3440 Online
110102 Solutions
New Discussion

NTP Problem

 
SOLVED
Go to solution
Carlo Henrico
Occasional Advisor

NTP Problem

I have read up on the NTP daemon and set it up. I am now using Windows shareware to set my PC's time from the HP-UX 11.0 server but get exactly one hour difference.

We do not use daylight savings time. Any ideas please?
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: NTP Problem


There must be something in your Windows shareware to handle timezones/daylight savings - and its not setup correctly. If the time on your HP server is correct then the problem is on your PC.
Im from Palmerston North, New Zealand, but somehow ended up in London...
John Palmer
Honored Contributor

Re: NTP Problem

Are you sure that your PC is not configured for daylight saving?

Both the HP server and your PC should be set to UTC.

What does 'date -u' report on the HP server? At the time of this post, it should be around 'Tue Sep 26 13:50:18 UTC 2000'
Carlo Henrico
Occasional Advisor

Re: NTP Problem

John

The date -u seems to be the issue. It was reporting an hour earlier than expected and as a result our time is GMT +2. This difference is however as a result 3 hours. How do I fix this?
John Palmer
Honored Contributor

Re: NTP Problem

You adjust it with the date command - with the -u flag if you are specifying UTC but you need to check and amend /etc/TIMEZONE.

Your HP server is running an hour slow but you have been compensating with a TZ (sourced from /etc/TIMEZONE) which is an hour out.

If you have any date dependent applications then I would consider shutting to single user mode, amend TIMEZONE, adjust the date with 'date -u' then reboot.
Carlo Henrico
Occasional Advisor

Re: NTP Problem

John

I have tried to set both date -u and without the -u. The etc/TIMEZONE is SAST-2SADT .

We are basically GMT+2 but the two times are always 3 hours difference. Anything else I should look at?
John Palmer
Honored Contributor
Solution

Re: NTP Problem

Check out the entry for 'SAST' in the file /usr/lib/tztab and do 'man tztab'.

This file defines when Daylight Savings Time is in operation for all timezones. The entry that one of my servers has is:-

# South Africa Standard Time
SAST-2
0 1 1-7 3 1985-2038 0 SAST-2
-----------------------------------------
Which does not specify daylight savings. What does your entry look like?