it tried this command on my amazon Debian instances
root@ip-:~# date
Sun Apr 27 11:26:34 UTC 2014
and in my local debain instances its like this
root@debian:~# date
Sun Apr 27 16:56:56 MDT 2014
so now how can i make my local debain machine time as same as the amazon instance time
i.e
convert
Sun Apr 27 16:56:56 MDT 2014 ->(to) Sun Apr 27 11:26:34 UTC 2014 this
in my local debain machinee
There are two issues concerning the time difference at hand:
sudo dpkg-reconfigure tzdata
(see Ynhockey's answer to How do I permanently reset the time zone in Debian?).sudo apt-get install ntp
and editing/etc/ntp.conf
to target more local NTP server sources for optimal results.