Saturday, November 28, 2015

configure UTC timezone on ubuntu

1- use command dpkg-reconfigure tzdata to change to utc timezone
$ sudo dpkg-reconfigure tzdata
then choose "None of the above"  --> "UTC"

2- change to your time according to you location
$ sudo ln -sf /usr/share/zoneinfo/Asia/Phnom_Penh /etc/localtime

3- to display time use cammands
- local time
$ date
- utc time
$ date -u

No comments:

Post a Comment