Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 598
  • Last Modified:

NTP

Well my ntp server is getting me time wrong from the remote server because of daylight saving configured on the remote machine how do  i solve te problem
0
naufal
Asked:
naufal
1 Solution
 
Alf666Commented:
It should not :-)

This probably means that your timezone (or the NTP server's timezone) is not configured properly.

You could try another NTP server, or check your timezone config.

Check your /etc/TIMEZONE file.
0
 
jlevieCommented:
This is almost certainly a problem with the timezone setting on your machine. NTP uses GMT to allow it to work across timezones. My guess is that your system is set for a timezone that uses Daylight Savings time.
0
 
naufalAuthor Commented:
i am using pakistan standard time the output of the date command on my machine is

Mon Apr  5 00:01:21 PKST 2004
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
TintinCommented:
What version of Solaris are you running?

Has PKST changed dates in the last few years?

Sun regularly update the timezone files when daylight savings dates change.
0
 
Alf666Commented:
jlevie : yes. But what if the remote server (if it's a master server) stupidly changes it's time manually to respect DST ??

naufal, I suggest you try the following :

zdump (or maybe zic, I don't remember on Solaris) :

zdump -v PKST

It should show 4 lines. 2 in 1901 (epoch) and 2 in 2038.

If it's right, thern I strongly suggest you switch to another NTP server.
0
 
naufalAuthor Commented:
ok there is a rule in a file /usr/lib/share/src/asia which says that daylight saving becomes active on first of april and i have checked my XP machine with the same ntp server it works fine so probabaly i wll have to comment the line ..... lets see i can't get hold of the system right now so may be after couple of hours:)
0
 
naufalAuthor Commented:
ok yes guys that does the job but now the same problem is coming on my linux machine and i don't find any kind of file on that

Regards
0
 
Alf666Commented:
Now, on Linux, you can try the zdump trick :

First, do a date, and check for the timezone name.

Then, dump it's rules (e.g: PKST) :

zdump -v PKST

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now