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?
2 Answers
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.
Run the command:
dpkg-reconfigure tzdata
and choose Europe/London
-
[ec2-user~]$ dpkg-reconfigure tzdata -bash: dpkg-reconfigure: command not found Mar 31, 2013 at 11:35
-
1I think this is a Debian-based command, whereas Amazon Linux is RedHat-based.– ceejayozMar 31, 2013 at 12:37