LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   ntp time off by 1 hour (http://www.linuxquestions.org/questions/linux-software-2/ntp-time-off-by-1-hour-628458/)

schneidz 03-16-2008 01:05 PM

ntp time off by 1 hour
 
6 months ago, after daylight savings day i noticed my clock was off an hour for about a month. now that daylight savings day was last week my clock is behind one hour.
for example it is about 2:00 boston time but my clock shows:
Code:

[schneidz@hyper ntp]$ date
Sun Mar 16 13:01:43 EST 2008

i tried a bunch of different time servers... the server im using now is: 0.us.pool.ntp.org.

is there some sort of bug with ntp and daylight savings time.

osor 03-16-2008 01:25 PM

Quote:

Originally Posted by schneidz (Post 3090454)
is there some sort of bug with ntp and daylight savings time.

The problem is not in ntp, but in your systemís timezone data files. What OS is this and when was the last time you updated your tzdata?

pixellany 03-16-2008 01:35 PM

I have ntp running and my clock matches exactly with www.time.gov
It changed to pacific daylight time automatically last Sunday.

What is puzzling is that the (KDE) clock setup says that it is not able to connect to an NTP server (I have left it with the automiatic time setting box unchecked.)

schneidz 03-16-2008 01:42 PM

Quote:

Originally Posted by osor (Post 3090472)
The problem is not in ntp, but in your systemís timezone data files. What OS is this and when was the last time you updated your tzdata?

hi, this is on rh-9. i dont know what tzdata is so i guess i never/ know how to update any time zone info.

thanks,

michaelk 03-16-2008 01:54 PM

tz is a database that contains time zone information i.e. +/- hours from UTC and the start/end of daylight saving time (officialy its not plural). Starting in 2007, daylight time begins in the United States on the second Sunday in March and ends on the first Sunday in November. Most current distributions would of had an update but since RH9 is obsolete you will need to change your database manually.

As already stated this isn't a ntp problem since its your system that actually adjusts the time from UTC.

http://www.twinsun.com/tz/tz-link.htm
http://articles.techrepublic.com.com...7-6163042.html

Unless you have some legacy application have you thought about updating to a more recent distribution?

pixellany 03-16-2008 02:54 PM

Quote:

Originally Posted by schneidz (Post 3090487)
hi, this is on rh-9. i dont know what tzdata is so i guess i never/ know how to update any time zone info.

thanks,

do you have a file: "/etc/timezone"?

Can you run the command "tzselect" in a terminal?

schneidz 03-16-2008 08:10 PM

thanks for the suggestions, fyi:
Code:

[schneidz@hyper schneidz]$ ll /etc/timezone
ls: /etc/timezone: No such file or directory

tzselect doesnt give me any option to change the dates for daylight savings.

i will eventually buy a new computer and put fedora on it.

michaelk 03-16-2008 09:03 PM

Correct, tzselect only shows the current information for the selected timezone. It does not change anything. To modify the database you must follow the link I posted above.

schneidz 03-16-2008 10:30 PM

Quote:

Originally Posted by michaelk (Post 3090810)
Correct, tzselect only shows the current information for the selected timezone. It does not change anything. To modify the database you must follow the link I posted above.

thanks, i followed the instructions from this link and all is good:

http://articles.techrepublic.com.com...7-6163042.html


All times are GMT -5. The time now is 04:17 AM.