My Amazon Linux server at EC2 is showing GMT times, instead of BST ones this morning. How do I change the server time so that it is running off BST instead?

  • All servers should use UTC. For this very reason. – Tom O'Connor Mar 31 '13 at 13:03

And here it is.

sudo vi /etc/sysconfig/clock

Edit the zone to "Europe/London" or your own local timezone

sudo tzdata-update

...and then probably restart the webserver etc to properly fix everything.

| improve this answer | |

Run the command:

dpkg-reconfigure tzdata

and choose Europe/London

| improve this answer | |
  • [ec2-user~]$ dpkg-reconfigure tzdata -bash: dpkg-reconfigure: command not found – jamescridland Mar 31 '13 at 11:35
  • 1
    I think this is a Debian-based command, whereas Amazon Linux is RedHat-based. – ceejayoz Mar 31 '13 at 12:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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