Avatar of naufal
naufalFlag for Pakistan

asked on 

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
Unix OS

Avatar of undefined
Last Comment
Alf666
Avatar of Alf666
Alf666

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.
Avatar of jlevie
jlevie

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.
Avatar of naufal
naufal
Flag of Pakistan image

ASKER

i am using pakistan standard time the output of the date command on my machine is

Mon Apr  5 00:01:21 PKST 2004
Avatar of Tintin
Tintin

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.
ASKER CERTIFIED SOLUTION
Avatar of Alf666
Alf666

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of naufal
naufal
Flag of Pakistan image

ASKER

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:)
Avatar of naufal
naufal
Flag of Pakistan image

ASKER

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
Avatar of Alf666
Alf666

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

Unix OS
Unix OS

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.

33K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo