{"id":320,"date":"2016-05-17T05:05:20","date_gmt":"2016-05-17T05:05:20","guid":{"rendered":"http:\/\/www.howtolearnlinux.com\/?p=320"},"modified":"2019-03-02T14:33:08","modified_gmt":"2019-03-02T14:33:08","slug":"change-timezone-in-linux","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=320","title":{"rendered":"Change Timezone in Linux"},"content":{"rendered":"<p>Setting the correct timezone is very important in any system to avoid confusions. Especially in systems used by multiple users, one may think the time is wrong without noticing the timezone.<\/p>\n<p>&nbsp;<\/p>\n<p>To verify the date and time, including the timezone set in a linux (CentOS) host, the below is a very useful command:<\/p>\n<p><strong>#] date<\/strong><\/p>\n<p><em>Tue May 17 10:26:49 EDT 2016<\/em><\/p>\n<p>Now the question is how did the \u00a0system pick EDT? This get configured during the time of installing the OS.<\/p>\n<p>The following steps can be used to reset the timezone to <strong>IST<\/strong>.<\/p>\n<p><strong>#]\u00a0cd \/etc<\/strong><\/p>\n<p><strong>#]\u00a0mv localtime \/root\/<\/strong><\/p>\n<p><strong>#]\u00a0ln -s \/usr\/share\/zoneinfo\/Asia\/Kolkata localtime<\/strong><\/p>\n<p>Now let us verify of the change happened.<\/p>\n<p><strong>#] date<\/strong><\/p>\n<p><em>Tue May 17 10:34:07 IST 2016<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Setting the correct timezone is very important in any system to avoid confusions. Especially in systems used by multiple users, one may think the time <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=320\" title=\"Change Timezone in Linux\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":252,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":4,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":841,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions\/841"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}