Created
June 19, 2020 16:26
-
-
Save ilhamsa1/4dd090b8f24d4c4b4ad80bb3673d4e19 to your computer and use it in GitHub Desktop.
for fix the wrong time on server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ timedatectl | |
Local time: Fri 2020-06-19 22:54:58 WIB <--- wrong | |
Universal time: Fri 2020-06-19 15:54:58 UTC <--- wrong | |
RTC time: Fri 2020-06-19 16:10:32 <--- Correct time | |
Time zone: Asia/Jakarta (WIB, +0700) | |
NTP enabled: n/a | |
NTP synchronized: no | |
RTC in local TZ: yes | |
DST active: n/a | |
$ sudo yum install ntp ntpdate | |
$ ntpdate pool.ntp.org | |
$ timedatectl | |
$ timedatectl | |
Local time: Fri 2020-06-19 23:14:52 WIB <----(Correct) | |
Universal time: Fri 2020-06-19 16:14:52 UTC <----(Correct) | |
RTC time: Fri 2020-06-19 16:14:51 <----(Correct) | |
Time zone: Asia/Jakarta (WIB, +0700) | |
NTP enabled: no | |
NTP synchronized: no | |
RTC in local TZ: no | |
DST active: n/a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment