AWS EC2 Amazon Linux AMI change timezone

AWS (Amazon Web Services) EC2 Amazon Linux AMI timezone will most likely be different than your local machines’ timezone. To remedy this issue on Amazon’s Linux machine image, ssh in and type the following commands in prompt:
sudo su become root user
ln -sf /usr/share/zoneinfo/America/Toronto /etc/localtime Choose your time zone ( in this example Toronto ), and make it a symbolic link
vim /etc/sysconfig/clock open the clock file in vim editor
Once vim opens hit your ‘i’ key to begin inserting. Use your directional arrows on your keyboard to move the the last line and enter: ZONE=”America/Toronto”
Hit your ‘Esc’ key to exit insert mode and type :wq ( write to file and quit ).
You’ll have to reboot the instance too, which you can can do in the management console under the Actions button.