Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
### Confirm the current timezone
[root@opmantek ~]# date
Sat Apr 22 13:43:59 KST 2017

### Remove current timezone config
[root@opmantek ~]# rm -rf /etc/localtime 

### Set to desired timezone
[root@opmantek ~]# ln -s /usr/share/zoneinfo/UTC /etc/localtime

### Verify
[root@opmantek ~]# date
Sat Apr 22 04:46:29 UTC 2017

 

Debian Based Systems

Use the dpkg-reconfigure utility with the tzdata argument

Code Block
root@DebTest:~#dpkg-reconfigure tzdata

This will launch a GUI in the terminal and guide the user through the process.

CentOS 7

Code Block
### Find the desired timezone
[root@localhost ~]# timedatectl list-timezones

### Confirm current timezone
[root@localhost ~]# date
Sat Apr 22 01:05:47 EDT 2017

### Change to desired timezone
[root@localhost ~]# timedatectl set-timezone UTC

### Verify
[root@localhost ~]# date
Sat Apr 22 05:06:04 UTC 2017

 

OMK Applications