[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Re: Daylight saving time & rdate



* Richard (richard [at] sheflug.co.uk) wrote:
> Dear All
> 
> 
> > > Hmmm... been having some problems with time this week.
> > >
> > > All my linux boxes keep GMT in the CMOS clocks and do a "clock -su" on
> > > boot - this sets the unix time 1 hour infront of the CMOS time in the
> > > summer. Problem being the gateway syncs it's time with a UK timeserver
> > > every time it connects to the net with rdate - the timeserver returns
> > > GMT not BST so I loose an hour on the unix clock, and then it sets the
> > > CMOS clock another hour behind so my CMOS clock keeps GMT -1 hour. As
> > > all the other machines on the LAN sync off the gateway then chaos
> > > ensues. Apart from changing to a French timeserver in the summer how do
> > > I get the timezones sorted (short of rewriting rdate with an option to
> > > ignore the hour part of the returned time)? Been looking through xntp
> > > documentation but it all seems soooo much more complicated than what I need.
> > Hrm.
> > I do ntpdate -us time.nist.gov 2 or 3 times a day.
> > and it coped fine with BST.
> > not sure what to suggest. unless rdate is different, or your timezone is
> > set funny.
> 
> 
> Yeh, I've got the same problem with my domestic workstation.  Started
> after I installed SuSE 7.1.  I thought it was something to do with
> KDE.  I've had that problem several times with new releases of KDE.
> 
> So, what do I ?
> 
> Anyone know what line to put into /etc/ppp/ip-up to sort things out ?
> Chris came up with one some time ago that works fine with Red Hat but
> won't work with my system.
> 
> Other thing is.  Once my net facing box has updated itself I then need
> to get my workstation to check in on that box so that it will correct
> itself.  Perhaps crontab could be used ?
> 
> */30  * * *  /check/time/every/30/mins
> 
> although wot the crontab might look like I've no idea ?
> 

At a guess, and it is a guess, since I've only had this problem once,
and it was a while ago, it could be a timezone thing.

If you've got the timezone set as GMT, I have a feeling that is the way
it will stay, even tho you'd expect it to go to BST.

FWIW I have the timezone set as Europe/London and all is working fine.

and for a crontab line.

20 * * * * root ntpdate -us gw

will update the time on the current box, using the time from gw.
once an hour.



-- 
|*-------------------=[ Richard Lowe ]=------------------*|
| richlowe [at] btinternet.com                   UIN: 74724348 |           
|*-------------------------------------------------------*|
| Europe has the Kilogram and the Meter.                  |
| America has the Pound and the Inch.                     |
| Childrens TV has the Elephant and the Double Decker Bus |
|*-------------------------------------------------------*|
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.