Difference between revisions of "CentOS 8.x Change system timezone"

From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Change system timezone">CentOS 8.x System Administration|System Administration</yambe:breadcrumb> =CentOS 8.x Change system timezone= To change system...")
 
m
Line 5: Line 5:
# To change timezone to Asia/Kolkata use:
# To change timezone to Asia/Kolkata use:
#:<pre>
#:<pre>
#:: timezonectl set-timezone 'Asia/Kolkata'
#:: timedatectl set-timezone 'Asia/Kolkata'
#:</pre>
#:</pre>
# To see time in UTC and current timezone use:
# To see time in UTC and current timezone use:
#:<pre>
#:<pre>
#:: timezonectl
#:: timedatectl
#:</pre>
#:</pre>




'''There is older article on this at [[CentOS 7.x Change system timezone]]'''
'''There is older article on this at [[CentOS 7.x Change system timezone]]'''

Revision as of 07:06, 19 March 2021

<yambe:breadcrumb self="Change system timezone">CentOS 8.x System Administration|System Administration</yambe:breadcrumb>

CentOS 8.x Change system timezone

To change system timezone we can use timezonectl (similar to hostnamectl) command:

  1. To change timezone to Asia/Kolkata use:
    timedatectl set-timezone 'Asia/Kolkata'
  2. To see time in UTC and current timezone use:
    timedatectl


There is older article on this at CentOS 7.x Change system timezone