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?
Asked
Active
Viewed 2,945 times
0
-
All servers should use UTC. For this very reason. – Tom O'Connor Mar 31 '13 at 13:03
2 Answers
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.
![](../../users/profiles/43719.webp)
jamescridland
- 167
- 2
- 10
0
Run the command:
dpkg-reconfigure tzdata
and choose Europe/London
![](../../users/profiles/40862.webp)
Ashley
- 528
- 1
- 6
- 14
-
[ec2-user~]$ dpkg-reconfigure tzdata -bash: dpkg-reconfigure: command not found – jamescridland Mar 31 '13 at 11:35
-
1I think this is a Debian-based command, whereas Amazon Linux is RedHat-based. – ceejayoz Mar 31 '13 at 12:37