"Ian Drake, IT, SE Dunbartonshire" wrote:
>
> Mark,
>
> add the following to your start up (assuming the machine has a 24/7
> internet)
>
> ntpdate ntp.pipex.net
>
> This solved a similar problem that I had, what it does is synchronises the
> computer's clock to ntp.pipex.net's which is a secondary time server, so the
> time should be bang on. It might be worth cronning the taks for once a day
> ;-)
>
> Regards,
>
> IWD
>
> -----Original Message-----
> From: Mark Hannah [mailto:[EMAIL PROTECTED]]
> Sent: 18 April 2001 10:15
> To: [EMAIL PROTECTED]
> Subject: [scottish] Linux time.
>
> Hi Folks,
>
> Can anyone help me with a problem that has been driving me crazy for the
> last
> few weeks?
>
> Since we switched to BST, my linux time has somehow got an hour ahead.
> I can chage the time by doing :-
>
> date --set='-1 hour'
>
> but, on the next re-boot the time reverts back to being an hour fast.
> Can anyone tell me what is going on?
>
Hi
You probably have your timezone set incorrectly. The file
/etc/localtime should be a symbolic link to the correct zone information
file.
To check what zone it is set to do type "ls -l /etc/localtime" and you
should get something similar to below:
kenny@selkie:~> ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Aug 27 2000 /etc/localtime ->
/usr/share/zoneinfo/Europe/London
The setting I have above will make your machine use the appropriate
time.
To change your setting as root you would need to do the following:
prompt# rm /etc/localtime
prompt# ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
Make sure though that the zone files are there first.
--
Kenny Duffus
Department of Computer Science
University of Strathclyde
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------