Skip to content

Instantly share code, notes, and snippets.

  • Select an option

  • Save jay-johnson/038e68b2f456d4d0ef154516707d6fc8 to your computer and use it in GitHub Desktop.

Select an option

Save jay-johnson/038e68b2f456d4d0ef154516707d6fc8 to your computer and use it in GitHub Desktop.
Setting EC2 AMI local time to EST and EST5EDT
[root@ip-10-0-1-144 ~]# cp /usr/share/zoneinfo/EST /etc/localtime
[root@ip-10-0-1-144 ~]# date
Mon Aug 22 11:09:18 EST 2016
[root@ip-10-0-1-144 ~]# cp /usr/share/zoneinfo/EST5EDT /etc/localtime
[root@ip-10-0-1-144 ~]# date
Mon Aug 22 12:09:25 EDT 2016
[root@ip-10-0-1-144 ~]# service crond restart
Stopping crond: [ OK ]
Starting crond: [ OK ]
[root@ip-10-0-1-144 ~]# service rsyslog restart
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
[root@ip-10-0-1-144 ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment