Setting Time Zone in Linux (Ubuntu)
dpkg-reconfigure tzdata
Setting the time zone in Amazon Linux
https://forums.aws.amazon.com/thread.jspa?messageID=210296&tstart=0#210296
cp /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
Where Asia/Calcutta can be replaced...
I have not tried the below:
That succeeded, and should be more robust against daylight savings changes than the other options:
also had to unset my TZ="PST" env var before the change was apparent.
Incase if your server is not in sync with actual time, please run the following command:
dpkg-reconfigure tzdata
Setting the time zone in Amazon Linux
https://forums.aws.amazon.com/thread.jspa?messageID=210296&tstart=0#210296
cp /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
Where Asia/Calcutta can be replaced...
I have not tried the below:
That succeeded, and should be more robust against daylight savings changes than the other options:
also had to unset my TZ="PST" env var before the change was apparent.
Incase if your server is not in sync with actual time, please run the following command:
sudo ntpdate pool.ntp.org
No comments:
Post a Comment