You are not logged in.

#1 2005-05-30 01:52:32

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

'ntpdate' sets my time one hour slow?

The command:

ntpdate rolex.usg.edu

sets my clock one hour off.  Right now, it's 9:51pm, but it says 8:51pm. I live in EST (St. Petersburg, FL), and in my rc.conf file, I have:

#
HARDWARECLOCK="UTC"
TIMEZONE=EST

I don't think I'm missing anything else.  I just want to put the ntpdate command into a cron file, but it sets it to the wrong time.  Does anybody know what's going on?  I've even tried this when I wasn't drunk. smile


fffft!

Offline

#2 2005-05-30 10:32:53

incinerator
Member
From: Edinburgh, Scotland
Registered: 2005-02-15
Posts: 80

Re: 'ntpdate' sets my time one hour slow?

Probably some issue with daylight saving time. Read the installation howto to find out how to set TIMEZONE something that refers to the place the box is located, not a fixed time zone.

http://www.archlinux.org/docs/en/guide/ … tml#cfile1

Also, letting the hardware clock running UTC time won't work on a Linux/Wincrap dual-boot box.

Offline

#3 2005-05-30 14:54:01

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: 'ntpdate' sets my time one hour slow?

In my rc.conf:

HARDWARECLOCK="UTC"
TIMEZONE=US/Eastern

I think this is the standard way to set up timezones.

Offline

#4 2005-05-30 15:37:03

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: 'ntpdate' sets my time one hour slow?

TIMEZONE="America/New_York"

The above seems to work for me with ntpdate.

Offline

#5 2005-06-01 14:53:35

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

Re: 'ntpdate' sets my time one hour slow?

Yes, yes... Thank you all.  I realized once I actually read the timezones file that America/New_York should work, and it did.

Thanks again..  big_smile


fffft!

Offline

Board footer

Powered by FluxBB