View previous topic :: View next topic |
Author |
Message |
benwalton n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 08 Jun 2004 Posts: 35 Location: Leeds, UK
|
Posted: Fri Apr 21, 2006 8:34 am Post subject: Timezone problem [SOLVED] |
|
|
Hi,
Ive searched this forum for a couple of hours and haven't managed to fix this problem yet!
I was messing with /etc/localtime briefly yesterday and since then ive not managed to get my time correct. Im currently in BST and whatever I do I seem to get GMT.
If I edit /etc/conf.d/clock to
and
Code: | benw@benw ~ $ ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Apr 21 08:29 /etc/localtime -> /usr/share/zoneinfo/Europe/London
|
and restart clock and do an ntpdate on a BST ntp server
I get
Code: | benw@benw ~ $ date
Fri Apr 21 08:30:46 GMT 2006 |
Which is an hour behind, and it says GMT there?
Exactly the same happens with
Im running out of ideas.
My hardware clock is the same as my software clock
Code: |
benw@benw ~ $ sudo hwclock --show
Fri Apr 21 08:32:29 2006 -0.187547 seconds
benw@benw ~ $ date
Fri Apr 21 08:32:34 GMT 2006
|
The only way I can get round it is running a date command, but then the hardware clock is an hour out and emails appear to be from an hour ago.
Any ideas? It all used to work perfectly!! _________________
Code: | Do you want me to merge these packages? [Yes/No] yes please
Sorry, response 'yes please' not understood. [Yes/No] yes |
Last edited by benwalton on Fri Apr 21, 2006 10:43 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ferdinando Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/187356752443dd0292614b2.jpg)
Joined: 25 Nov 2003 Posts: 1027 Location: Gaeta (LT) - Italy
|
Posted: Fri Apr 21, 2006 10:02 am Post subject: |
|
|
Mmm, I think the London timezone doesn't take into consideration the british summer time; in general I don't know how's the support to daylight saving time (we call that "ora legale", legal time) in linux, since I've got winxp on my other partition which updates that automatically when it starts, and the only time I tried to configure that in linux it resulted in a big mess.
As a hack, you could consider switching to GMT+1 timezone (in /usr/share/zoneinfo/Etc/).
EDIT: from the localization guide:
Quote: | Please avoid the /usr/share/zoneinfo/Etc/GMT* timezones as their names do not indicate the expected zones. For instance, GMT-8 is in fact GMT+8 |
EDIT: actually here date displays CEST time, thus showing it knows it's summer time; maybe windows set that in the bios...
Bye _________________ La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
benwalton n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 08 Jun 2004 Posts: 35 Location: Leeds, UK
|
Posted: Fri Apr 21, 2006 10:38 am Post subject: |
|
|
Thanks for your suggestion.
I changed my time to GMT+1
But its still an hour behind!
Code: | benw@benw ~ $ date
Fri Apr 21 10:25:43 GMT+1 2006
|
And only gets further and further behind by changing to UTC or doing an ntpdate!
Is there no BST timezone I can copy from somewhere? _________________
Code: | Do you want me to merge these packages? [Yes/No] yes please
Sorry, response 'yes please' not understood. [Yes/No] yes |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
benwalton n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/simpsons_homer.gif)
Joined: 08 Jun 2004 Posts: 35 Location: Leeds, UK
|
Posted: Fri Apr 21, 2006 10:42 am Post subject: |
|
|
I seem to have fluked it
Found another (non gentoo) box with BST as timezone, copied that to my /etc/localtime set clock to UTC and its all working and the same as my HW clock!
Thanks for your help! _________________
Code: | Do you want me to merge these packages? [Yes/No] yes please
Sorry, response 'yes please' not understood. [Yes/No] yes |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|