I want to change the time zone set in my Amazon EC2 instance running Ubuntu Linux to local time?
My Question
How to change the time zone in
Another way of changing the time (This was done on an Amazon EC2 Linux instance)
Remove your localtime file
sudo rm /etc/localtime
Change Directory to ZoneInfo
cd /usr/share/zoneinfo
This folder contains all of the timezone information. You then just need to softlink to the appropriate zone.
Create a softlink to /etc/localtime
sudo ln -s /usr/share/zoneinfo/GB /etc/localtime
That will change your server timezone to GB