{"id":83,"date":"2021-07-05T07:24:14","date_gmt":"2021-07-05T07:24:14","guid":{"rendered":"http:\/\/webhostingpune.co.in\/blog\/?p=83"},"modified":"2021-07-05T07:25:00","modified_gmt":"2021-07-05T07:25:00","slug":"how-to-change-timezone","status":"publish","type":"post","link":"https:\/\/webhostingpune.co.in\/blog\/how-to-change-timezone\/","title":{"rendered":"How to change timezone"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A time zone is a geographic region that has the same standard time. Typically the time zone is set during the installation of the operational system, but it can be easily changed at a later time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the correct time zone is essential for many systems related tasks and processes. For example, the cron daemon uses the system\u2019s time zone for executing cron jobs. The time zone is also used for logs timestTo amps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>To Check the Current Time Zone<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>timedatectl is a command-line utility that allows you to view and change the system\u2019s time and date. It is available on all modern systemd-based Linux systems.\n\n#timedatectl<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"188\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-2.png\" alt=\"\" class=\"wp-image-84\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-2.png 611w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-2-300x92.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The output above shows that the system\u2019s time zone is set to UTC.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">To Change the Time Zone in Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before changing the time zone, you\u2019ll need to find out the long name of the time zone you want to use. The time zone naming convention usually uses a \u201cRegion\/City\u201d format.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see list all available time zones, enter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#timedatectl list-timezones<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"315\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-3.png\" alt=\"\" class=\"wp-image-85\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-3.png 696w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-3-300x136.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you identify which time zone is accurate to your location, run the following command as root or&nbsp;sudo&nbsp;user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>To set the time zone to \u2018Asia\/Kolkata\u2019, enter:\nsudo timedatectl set-timezone &lt;your_time_zone&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"26\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-4.png\" alt=\"\" class=\"wp-image-86\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-4.png 719w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-4-300x11.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To verify the change, invoke the&nbsp;<code>timedatectl<\/code>&nbsp;command again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># timedatectl<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"227\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-5.png\" alt=\"\" class=\"wp-image-87\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-5.png 720w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/07\/image-5-300x95.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mission accomplished! You\u2019ve successfully changed your system\u2019s time zone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A time zone is a geographic region that has the same standard time. Typically the time zone is set during the installation of the operational system, but it can be easily changed at a later time. Using the correct time zone is essential for many systems related tasks and processes. For example, the cron daemon uses the system\u2019s time zone for executing cron jobs. The time zone is also used for logs timestTo amps. To Check the Current Time Zone The output above shows that the system\u2019s time zone is set to UTC. To Change the Time Zone in Linux Before changing the time zone, you\u2019ll need to find out the long name of the time zone you want to use. The time zone naming convention usually uses a \u201cRegion\/City\u201d format. To see list all available time zones, enter: Once you identify which time zone is accurate to your location, run the following command as root or&nbsp;sudo&nbsp;user: To verify the change, invoke the&nbsp;timedatectl&nbsp;command again: Mission accomplished! You\u2019ve successfully changed your system\u2019s time zone.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":3,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions\/90"}],"wp:attachment":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}