0

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?

1
  • All servers should use UTC. For this very reason. Mar 31, 2013 at 13:03

2 Answers 2

1

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.

0

Run the command:

dpkg-reconfigure tzdata

and choose Europe/London

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .