Timedatectl
Jump to navigation
Jump to search
External
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/chap-configuring_the_date_and_time
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/s1-utc_timezones_and_dst
Internal
Overview
Get Current Time Zone
timedatectl status
Change the Time Zone of the System
List available timezones:
timedatectl list-timezones | grep America
Set the desired one:
timedatectl set-timezone America/Los_Angeles
Verify NTP Synchronization
timedatectl Local time: Wed 2018-02-07 09:49:15 PST Universal time: Wed 2018-02-07 17:49:15 UTC RTC time: Wed 2018-02-07 17:44:36 Time zone: America/Los_Angeles (PST, -0800) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: no Last DST change: DST ended at Sun 2017-11-05 01:59:59 PDT Sun 2017-11-05 01:00:00 PST Next DST change: DST begins (the clock jumps one hour forward) at Sun 2018-03-11 01:59:59 PST Sun 2018-03-11 03:00:00 PDT
Configure NTP
timedatectl set-ntp true