Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm setting my timezone like so:

ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

It works fine, I check with date and all is good.

But then a few days later I'll realise it's reset itself to CEST, so 9am becomes 10am, etc.

The server is located in Paris, in the CEST time zone. But I should be able to use any zone I want, surely? I (and most of my users) am based in the UK, so I want to operate on that timezone.

I just did a yum update and noticed it wanted to update tzdata. That had the effect of changing from BST to CEST, but I don't think it's the only thing that triggers the change, as I'm sure it's gone wrong on days where I've done no such update. I could be wrong though.

What's the trick to set a timezone permanently?

Thanks

share|improve this question

1 Answer 1

Very simple upon further googling. Editing /etc/sysconfig/clock to say London instead of Paris did the trick. yum reinstall tzdata with clock set to Paris triggered the problem, but yum reinstall tzdata with clock set to London has the desired effect.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.