{"id":3241,"date":"2021-01-06T18:26:52","date_gmt":"2021-01-06T18:26:52","guid":{"rendered":"https:\/\/linuxways.net\/?p=3241"},"modified":"2021-01-06T18:26:55","modified_gmt":"2021-01-06T18:26:55","slug":"how-to-change-date-time-and-time-zone-in-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-change-date-time-and-time-zone-in-centos-8\/","title":{"rendered":"How to Change Date, Time, and Time Zone in CentOS 8"},"content":{"rendered":"<p>It is necessary that the date and time of your installed operating system must correct. Many jobs like the cron tasks that are running in the background and log entries of your system consist of specific timestamps. It is also helpful that the clock shows you the correct time when you are working on a desktop system. However, in this article, we will show you how you can adjust the date, time, and time zone of your CentOS 8 operating system.<\/p>\n<p>The time, date, and time zone can be adjusted by using the following two different ways in CentOS 8:<\/p>\n<ol>\n<li>Changing date, time, and time zone using the graphical interface<\/li>\n<li>Changing date, time, and time zone by using the command-line \/ Terminal window<\/li>\n<\/ol>\n<p>We will give you a demonstration of each method in detail one by one in the remaining article:<\/p>\n<h2><strong>Method 1: Changing date and time using the graphical interface<\/strong><\/h2>\n<p>You can set the date, time, and time zone of your CentOS system using the graphical environment in the following steps:<\/p>\n<p><strong>Step 1:<\/strong> Login into your CentOS system and click on the \u2018Activities\u2019 section from the top left corner of the desktop. Now, click on the menu icon which is also highlighted in the below-given image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1199\" height=\"882\" class=\"wp-image-3242\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-54.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-54.png 1199w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-54-300x221.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-54-1024x753.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-54-768x565.png 768w\" sizes=\"auto, (max-width: 1199px) 100vw, 1199px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Here, all application icons will be displayed on the desktop. Click on the \u2018setting\u2019 icon from the displayed window as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1190\" height=\"891\" class=\"wp-image-3243\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-55.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-55.png 1190w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-55-300x225.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-55-1024x767.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-55-768x575.png 768w\" sizes=\"auto, (max-width: 1190px) 100vw, 1190px\" \/><\/p>\n<p><strong>Step 3:<\/strong> Now, the following window will show you on the screen. Click on the search icon from the displayed window\u2019s corner and type the word \u2018date and time\u2019 in the search bar as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1172\" height=\"544\" class=\"wp-image-3244\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-56.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-56.png 1172w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-56-300x139.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-56-1024x475.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-56-768x356.png 768w\" sizes=\"auto, (max-width: 1172px) 100vw, 1172px\" \/><\/p>\n<p><strong>Step 4:<\/strong> All relevant results will display in the left corner under the search bar. Click on the date and time clock icon which is also shown in the following screenshot:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1193\" height=\"808\" class=\"wp-image-3245\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-57.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-57.png 1193w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-57-300x203.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-57-1024x694.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-57-768x520.png 768w\" sizes=\"auto, (max-width: 1193px) 100vw, 1193px\" \/><\/p>\n<p><strong>Step 5:<\/strong> The following window will show on the desktop. Here, click on the date and time option from all listed options as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"540\" class=\"wp-image-3246\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-58.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-58.png 799w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-58-300x203.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-58-768x519.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p><strong>Step 6:<\/strong> A dialog will display on the window where you can change the set the time and date according to your region timings. The \u2018+\u2019 sign will plus or increase the time and the \u2018-\u2019 sign will minimize or decrease it. Select the \u2018month\u2019 and similarly, you can set date and year using these symbols as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"274\" class=\"wp-image-3247\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-59.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-59.png 467w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-59-300x176.png 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/p>\n<p>When you will click on the month, the following drop-down list will appear where you can select the desired month.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"533\" class=\"wp-image-3248\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-60.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-60.png 690w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-60-300x232.png 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/p>\n<h2><strong>Changing Time zone<\/strong><\/h2>\n<p>To change the time zone, click on the \u2018time zone\u2019 from the displaying window as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1199\" height=\"798\" class=\"wp-image-3249\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-61.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-61.png 1199w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-61-300x200.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-61-1024x682.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-61-768x511.png 768w\" sizes=\"auto, (max-width: 1199px) 100vw, 1199px\" \/><\/p>\n<p>A search bar at the top of the window will display, type the region that you want to set, and press \u2018Enter\u2019. The desired time zone will automatically set on your system after doing this specified action.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"674\" class=\"wp-image-3250\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-62.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-62.png 1148w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-62-300x176.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-62-1024x601.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-62-768x451.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-62-1020x600.png 1020w\" sizes=\"auto, (max-width: 1148px) 100vw, 1148px\" \/><\/p>\n<p>You can also adjust the time format of 24 hours in \u2018AM \/PM\u2019 format. So, choose the \u2018Time Format\u2019 from the displayed list as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"877\" height=\"483\" class=\"wp-image-3251\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-63.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-63.png 877w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-63-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-63-768x423.png 768w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"704\" class=\"wp-image-3252\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-64.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-64.png 958w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-64-300x220.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-64-768x564.png 768w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/p>\n<h2><strong>Method 2: Changing date, time, and time zone by using the command-line \/ Terminal window<\/strong><\/h2>\n<p>There is a command through which you can adjust your system date and time. Using the \u2018timedatectl\u2019 you can display and adjust the date and time of your system. Therefore, open the terminal from the left sidebar of your desktop after clicking on the \u2018Activities\u2019 as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1191\" height=\"857\" class=\"wp-image-3253\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-65.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-65.png 1191w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-65-300x216.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-65-1024x737.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-65-768x553.png 768w\" sizes=\"auto, (max-width: 1191px) 100vw, 1191px\" \/><\/p>\n<p>By using the below-given command, you can view the current date, time of your operating system:<\/p>\n<pre>$ timedatectl<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1092\" height=\"364\" class=\"wp-image-3254\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-66.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-66.png 1092w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-66-300x100.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-66-1024x341.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-66-768x256.png 768w\" sizes=\"auto, (max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<p>or<\/p>\n<pre>$ timedatectl status<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1107\" height=\"282\" class=\"wp-image-3255\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-67.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-67.png 1107w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-67-300x76.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-67-1024x261.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-67-768x196.png 768w\" sizes=\"auto, (max-width: 1107px) 100vw, 1107px\" \/><\/p>\n<p>To adjust the time of your system, type the following command on the terminal:<\/p>\n<pre># timedatectl set-time 17:18:00<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1104\" height=\"153\" class=\"wp-image-3256\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-68.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-68.png 1104w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-68-300x42.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-68-1024x142.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-68-768x106.png 768w\" sizes=\"auto, (max-width: 1104px) 100vw, 1104px\" \/><\/p>\n<p>If you will get an error like the above. \u2018Failed to set time: NTP unit is active\u2019 then, by using the following command you will disable the NTP unit:<\/p>\n<pre># timedatectl set-ntp false<\/pre>\n<p>Again, try to change the time of your system by running the following command and check the updated time:<\/p>\n<pre># timedatectl set-time 17:18:00<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1093\" height=\"287\" class=\"wp-image-3257\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-69.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-69.png 1093w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-69-300x79.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-69-1024x269.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-69-768x202.png 768w\" sizes=\"auto, (max-width: 1093px) 100vw, 1093px\" \/><\/p>\n<p>Similarly, you can also adjust the date of your system.<\/p>\n<pre># timedatectl set-time 2019-12-12<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1087\" height=\"255\" class=\"wp-image-3258\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-70.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-70.png 1087w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-70-300x70.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-70-1024x240.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-70-768x180.png 768w\" sizes=\"auto, (max-width: 1087px) 100vw, 1087px\" \/><\/p>\n<p>If you want to change both the date and time of your system at a time then, use the following command to adjust the date and time:<\/p>\n<pre># timedatectl set-time \u20182021-01-05 16:18:45\u2019<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1090\" height=\"262\" class=\"wp-image-3259\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-71.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-71.png 1090w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-71-300x72.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-71-1024x246.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-71-768x185.png 768w\" sizes=\"auto, (max-width: 1090px) 100vw, 1090px\" \/><\/p>\n<h2><strong>Changing Time zone<\/strong><\/h2>\n<p>You can also set the time zone of your system using the command line. To view the list of all available time zones, type the following command:<\/p>\n<pre># timedatectl list-timezones<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"742\" class=\"wp-image-3260\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-72.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-72.png 1105w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-72-300x201.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-72-1024x688.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-72-768x516.png 768w\" sizes=\"auto, (max-width: 1105px) 100vw, 1105px\" \/><\/p>\n<p>To adjust the time zone of your system, type the following command on the terminal:<\/p>\n<pre>\u00a0# timedatectl set-timezone Europe\/Moscow<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1101\" height=\"250\" class=\"wp-image-3261\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-73.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-73.png 1101w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-73-300x68.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-73-1024x233.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-73-768x174.png 768w\" sizes=\"auto, (max-width: 1101px) 100vw, 1101px\" \/><\/p>\n<p>In the above command, you can replace \u2018Europe\/Moscow\u2019 with your desired time zone.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>We have discussed how you can easily adjust the time, date, and time zone of your system in CentOS 8 using two different methods. Now, you can set the time, date, and time zone of your CentOS system by following the above-mentioned ways. Please share with us your problem in case of any difficulty.<\/p>","protected":false},"excerpt":{"rendered":"<p>It is necessary that the date and time of your installed operating system must correct. Many jobs like the cron tasks that are running in the background and&hellip;<\/p>","protected":false},"author":2,"featured_media":3267,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[111,138],"class_list":["post-3241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-date","tag-time-zone"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=3241"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3241\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/3267"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=3241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=3241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=3241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}