Skip to content

Instantly share code, notes, and snippets.

@ilhamsa1
Created June 19, 2020 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilhamsa1/4dd090b8f24d4c4b4ad80bb3673d4e19 to your computer and use it in GitHub Desktop.
Save ilhamsa1/4dd090b8f24d4c4b4ad80bb3673d4e19 to your computer and use it in GitHub Desktop.
for fix the wrong time on server
$ 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