{"id":2038,"date":"2024-02-15T12:30:00","date_gmt":"2024-02-15T18:30:00","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=2038"},"modified":"2024-01-24T06:11:50","modified_gmt":"2024-01-24T12:11:50","slug":"how-to-check-and-change-the-time-zone-on-linux","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/","title":{"rendered":"How to Check and Change the Time Zone on Linux"},"content":{"rendered":"\n<div id=\"linux-2472709702\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>Time zones are very important for the Linux system because they can affect how the system operates, as well as affecting data displayed on your website for example. In this blog post, we will explain how to check and change the time zone on your Linux server. Setting the time and date is also important as it involves setting the correct time zone. These settings can be easily checked and changed according to your needs.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Changing the timezone on a Linux server is a very straightforward process. Let&#8217;s get things done!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A server running a recent version of Linux<\/li>\n\n\n\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Update the System<\/h2>\n\n\n\n<p>Before we make any changes to our Linux system, we should always update the packages to the latest version available. To do that, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y<\/pre>\n\n\n\n<p>If there&#8217;s a new kernel update, you&#8217;ll need to restart to load the new kernel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check the Time Zone<\/h2>\n\n\n\n<p>All Linux servers have some kind of time zone that is already set. To check the time zone, we need to use the <code>timedatecl<\/code> command. The <code>timedatectl<\/code> command in Linux is used for displaying the current time on your server. It displays the system time, the hardware clock, and the time zone configured on your system. There is additional info as output from this command about the status of the <code>systemd-timesyncd.service<\/code> and clock synchronization.<\/p>\n\n\n\n<p>Let&#8217;s execute the <code>timedatectl<\/code> command and see the exact output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# timedatectl\n               Local time: Sun 2024-01-14 15:57:57 CST\n           Universal time: Sun 2024-01-14 21:57:57 UTC\n                 RTC time: Sun 2024-01-14 21:57:57\n                Time zone: America\/Chicago (CST, -0600)\nSystem clock synchronized: yes\n              NTP service: active\n          RTC in local TZ: no<\/pre>\n\n\n\n<p>The first line displays the local time, the second line is the Universal time, and the third line is the hardware clock (RTC, or Real Time Clock). Then the timezone is displayed, and as you can see on our system it&#8217;s set to <b>America\/Chicago<\/b> CST (Central Standard Time). After that is the info about the synchronization, the network time protocol service, and the hardware clock in the local time zone, which in this case is disabled.<\/p>\n\n\n\n<p>We can check the time zone if we execute the <b>date<\/b> command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# date\nSun Jan 14 16:12:14 <b>CST<\/b> 2024<\/pre>\n\n\n\n<p>There is also another way to check the time zone, and that way is by listing the following file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ls -l \/etc\/localtime<\/pre>\n\n\n\n<p>You should get the following outptut:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# ls -al \/etc\/localtime\nlrwxrwxrwx 1 root root 35 Jan  14 16:14 \/etc\/localtime -&gt; \/usr\/share\/zoneinfo\/America\/Chicago<\/pre>\n\n\n\n<p>As you can see, the <code>timedatectl<\/code> command is easier to use and the output of that command includes more details compared to the other methods.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change the Time Zone on Linux<\/h2>\n\n\n\n<p>In the previous step, we explained different ways for checking the time zone. Now let&#8217;s cover how to change the current time zone on Linux.<\/p>\n\n\n\n<p>Before changing the time zone, we need to list the available time zones with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">timedatectl list-timezones<\/pre>\n\n\n\n<p>You will get a long list of time zones, as listed below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Africa\/Abidjan\nAfrica\/Accra\nAfrica\/Addis_Ababa\nAfrica\/Algiers\nAfrica\/Asmara\nAfrica\/Asmera\nAfrica\/Bamako\n\t.\n\t.\nAmerica\/Anchorage\nAmerica\/Anguilla\nAmerica\/Antigua\nAmerica\/Araguaina\nAmerica\/Argentina\/Buenos_Aires\nAmerica\/Argentina\/Catamarca\nAmerica\/Argentina\/ComodRivadavia\nAmerica\/Argentina\/Cordoba\nAmerica\/Argentina\/Ushuaia\n\t.\n\t.\nEurope\/Monaco\nEurope\/Moscow\nEurope\/Nicosia\nEurope\/Oslo\nEurope\/Paris\nEurope\/Podgorica\nEurope\/Prague\nEurope\/Riga\nEurope\/Rome\nEurope\/Samara\nEurope\/San_Marino<\/pre>\n\n\n\n<p>To change the current time zone to <b>Europe\/Monaco<\/b> for example, you need to execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">timedatectl set-timezone Europe\/Monaco<\/pre>\n\n\n\n<p>After executing this command, you can check the time zone to see the changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# timedatectl\n               Local time: Sun 2024-01-15 22:28:29 CET\n           Universal time: Sun 2024-01-15 21:28:29 UTC\n                 RTC time: Sun 2024-01-15 21:28:29\n                Time zone: Europe\/Monaco (CET, +0100)\nSystem clock synchronized: yes\n              NTP service: active\n          RTC in local TZ: no<\/pre>\n\n\n\n<p>As you can see the time zone was successfully changed.<\/p>\n\n\n\n<p>Another way to change the time zone is using the <code>tzselect<\/code> command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# tzselect\nPlease identify a location so that time zone rules can be set correctly.\nPlease select a continent, ocean, \"coord\", or \"TZ\".\n1) Africa\n2) Americas\n3) Antarctica\n4) Asia\n5) Atlantic Ocean\n6) Australia\n7) Europe\n8) Indian Ocean\n9) Pacific Ocean\n10) coord - I want to use geographical coordinates.\n11) TZ - I want to specify the timezone using the Posix TZ format.\n#? <\/pre>\n\n\n\n<p>Now, you can select the continent, ocean, and coordinates, or specify the time zone using the Posix TZ format. Let&#8217;s choose number <b>1<\/b> for the Africa continent. You will get a list of all countries in Africa.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Please select a country whose clocks agree with yours.\n 1) Algeria\t\t  13) C\u00f4te d'Ivoire\t    25) Iceland\t\t      37) Namibia\t\t49) Sudan\n 2) Angola\t\t  14) Djibouti\t\t    26) Kenya\t\t      38) Niger\t\t\t50) Tanzania\n 3) Benin\t\t  15) Egypt\t\t    27) Lesotho\t\t      39) Nigeria\t\t51) Togo\n 4) Botswana\t\t  16) Equatorial Guinea\t    28) Liberia\t\t      40) Rwanda\t\t52) Tunisia\n 5) Burkina Faso\t  17) Eritrea\t\t    29) Libya\t\t      41) Sao Tome &amp; Principe\t53) Uganda\n 6) Burundi\t\t  18) Eswatini (Swaziland)  30) Madagascar\t      42) Senegal\t\t54) Western Sahara\n 7) Cameroon\t\t  19) Ethiopia\t\t    31) Malawi\t\t      43) Sierra Leone\t\t55) Zambia\n 8) Central African Rep.  20) Gabon\t\t    32) Mali\t\t      44) Somalia\t\t56) Zimbabwe\n 9) Chad\t\t  21) Gambia\t\t    33) Mauritania\t      45) South Africa\n10) Comoros\t\t  22) Ghana\t\t    34) Mayotte\t\t      46) South Sudan\n11) Congo (Dem. Rep.)\t  23) Guinea\t\t    35) Morocco\t\t      47) Spain\n12) Congo (Rep.)\t  24) Guinea-Bissau\t    36) Mozambique\t      48) St Helena\n#? <\/pre>\n\n\n\n<p>We will choose number <b>45<\/b> for example to change the time zone to South Africa.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The following information has been given:\n\n\tSouth Africa\n\nTherefore TZ='Africa\/Johannesburg' will be used.\nSelected time is now:\tMon Jan 15 13:00:40 SAST 2024.\nUniversal Time is now:\tMon Jan 15 11:00:40 UTC 2024.\nIs the above information OK?\n1) Yes\n2) No\n#? \n<\/pre>\n\n\n\n<p>After that, we can confirm by typing 1 and hitting the Enter button. You will get the following screen:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">You can make this change permanent for yourself by appending the line\n\tTZ='Africa\/Johannesburg'; export TZ\nto the file '.profile' in your home directory; then log out and log in again.\n\nHere is that TZ value again, this time on standard output so that you\ncan use the \/usr\/bin\/tzselect command in shell scripts:\nAfrica\/Johannesburg <\/pre>\n\n\n\n<p>You should definitely add that line to your <code>.profile<\/code> file so that your time zone is remembered when you next login:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo \"TZ='Africa\/Johannesburg'; export TZ\" >> ~\/.profile<\/pre>\n\n\n\n<p>Congratulations! You successfully changed your time zone using two different ways.<\/p>\n\n\n\n<p>Of course, you don\u2019t have to spend your time on this and if you have a <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\" target=\"_blank\" rel=\"noopener\" title=\"\">managed Linux support<\/a> plan with us. We will help you with any aspect of your server time zones, including any app-specific time zone settings. You can simply ask our support team &#8211; they are available 24\/7 and will be able to help you with your time zone as well as any additional requirements that you may have.<\/p><div id=\"linux-1919274393\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Time zones are very important for the Linux system because they can affect how the system operates, as well as affecting data displayed on your website for example. In this blog post, we will explain how to check and change the time zone on your Linux server. Setting the time and date is also important [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2051,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[228,2],"tags":[45,266],"class_list":["post-2038","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tutorials","tag-linux","tag-time-zones"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Check and Change the Time Zone on Linux | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"Setting your time zone correctly is crucial in making your apps display the time and date correctly. Let&#039;s see how to check and change the time zone in Linux.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check and Change the Time Zone on Linux | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"Setting your time zone correctly is crucial in making your apps display the time and date correctly. Let&#039;s see how to check and change the time zone in Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-15T18:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Check and Change the Time Zone on Linux\",\"datePublished\":\"2024-02-15T18:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/\"},\"wordCount\":678,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp\",\"keywords\":[\"linux\",\"time zones\"],\"articleSection\":[\"Linux\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/\",\"name\":\"How to Check and Change the Time Zone on Linux | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp\",\"datePublished\":\"2024-02-15T18:30:00+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"Setting your time zone correctly is crucial in making your apps display the time and date correctly. Let's see how to check and change the time zone in Linux.\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp\",\"width\":742,\"height\":410,\"caption\":\"how to check and change the time zone on linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Check and Change the Time Zone on Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check and Change the Time Zone on Linux | LinuxHostSupport","description":"Setting your time zone correctly is crucial in making your apps display the time and date correctly. Let's see how to check and change the time zone in Linux.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Check and Change the Time Zone on Linux | LinuxHostSupport","og_description":"Setting your time zone correctly is crucial in making your apps display the time and date correctly. Let's see how to check and change the time zone in Linux.","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2024-02-15T18:30:00+00:00","og_image":[{"width":742,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Check and Change the Time Zone on Linux","datePublished":"2024-02-15T18:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/"},"wordCount":678,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp","keywords":["linux","time zones"],"articleSection":["Linux","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/","name":"How to Check and Change the Time Zone on Linux | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp","datePublished":"2024-02-15T18:30:00+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"Setting your time zone correctly is crucial in making your apps display the time and date correctly. Let's see how to check and change the time zone in Linux.","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/01\/how-to-check-and-change-the-time-zone-on-linux.webp","width":742,"height":410,"caption":"how to check and change the time zone on linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-check-and-change-the-time-zone-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Check and Change the Time Zone on Linux"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2038"}],"version-history":[{"count":13,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2038\/revisions"}],"predecessor-version":[{"id":2054,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2038\/revisions\/2054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/2051"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}