{"id":6461,"date":"2017-02-02T21:26:19","date_gmt":"2017-02-02T13:26:19","guid":{"rendered":"http:\/\/rmohan.com\/?p=6461"},"modified":"2017-02-02T21:26:19","modified_gmt":"2017-02-02T13:26:19","slug":"how-to-change-your-centos-server-timezone","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6461","title":{"rendered":"How to change your CentOS server timezone"},"content":{"rendered":"<header class=\"entry-header\">\n<div class=\"entry-title\">\n<h2>How to change your CentOS server timezone<\/h2>\n<\/div>\n<div class=\"entry-meta\"><span class=\"auhtor-post\">\u00a0<\/span><\/div>\n<\/header>\n<div class=\"entry-content\">\n<p>Timezone data (tzdata) is stored in \/usr\/share\/zoneinfo.<\/p>\n<p>To change your CentOS server\u2019s timezone, simply run the following command based up on the examples below:<\/p>\n<h5>Example 1: set time zone to Melbourne, Australia<\/h5>\n<pre class=\"lang:sh decode:true\">cp \/usr\/share\/zoneinfo\/Australia\/Melbourne \/etc\/localtime<\/pre>\n<h5>Example 2: set time zone to UTC<\/h5>\n<pre class=\"lang:sh decode:true\">cp \/usr\/share\/zoneinfo\/UTC \/etc\/localtime<\/pre>\n<p>To confirm the time set on your system, run the date command, example:<\/p>\n<pre class=\"lang:sh decode:true\">date\r\nThu Jul 26 09:53:11 EST 2012<\/pre>\n<p>If you want to sync this time to your hardware (BIOS) clock, run the following command:<\/p>\n<pre class=\"lang:sh decode:true\">hwclock --systohc<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> How to change your CentOS server timezone <\/p>\n<p>Timezone data (tzdata) is stored in \/usr\/share\/zoneinfo.<\/p>\n<p>To change your CentOS server\u2019s timezone, simply run the following command based up on the examples below:<\/p>\n<p> Example 1: set time zone to Melbourne, Australia cp \/usr\/share\/zoneinfo\/Australia\/Melbourne \/etc\/localtime Example 2: set time zone to UTC cp \/usr\/share\/zoneinfo\/UTC \/etc\/localtime <\/p>\n<p>To confirm [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6461"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6461"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6461\/revisions"}],"predecessor-version":[{"id":6462,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6461\/revisions\/6462"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}