{"id":114,"date":"2012-03-25T18:10:02","date_gmt":"2012-03-25T16:10:02","guid":{"rendered":"http:\/\/evcz.tk\/blog\/?p=114"},"modified":"2012-06-04T14:13:12","modified_gmt":"2012-06-04T12:13:12","slug":"linux-wrong-date-hwclock","status":"publish","type":"post","link":"https:\/\/evcz.tk\/blog\/2012\/03\/25\/linux-wrong-date-hwclock\/","title":{"rendered":"Linux fix wrong date\/time hwclock"},"content":{"rendered":"<p>If your clock is wrong you might have a wrong hwclock set&#8230;<\/p>\n<pre lang=\"bash\">yum install ntp\r\nntpdate -s it.pool.ntp.org\r\nhwclock -w<\/pre>\n<p>on a side note to change the timezone on RHEL 6.x adjust the clock settings config file:<\/p>\n<pre lang=\"bash\">nano -w \/etc\/sysconfig\/clock<\/pre>\n<p>set it as you wish:<\/p>\n<pre lang=\"bash\">ZONE=\"Europe\/Rome\"<\/pre>\n<p>then set the localtime<\/p>\n<pre lang=\"bash\">cp \/usr\/share\/zoneinfo\/Europe\/Rome \/etc\/localtime<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If your clock is wrong you might have a wrong hwclock set&#8230; yum install ntp ntpdate -s it.pool.ntp.org hwclock -w on a side note to change the timezone on RHEL 6.x adjust the clock settings config file: nano -w \/etc\/sysconfig\/clock set it as you wish: ZONE=&#8221;Europe\/Rome&#8221; then set the localtime cp \/usr\/share\/zoneinfo\/Europe\/Rome \/etc\/localtime<\/p>\n","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-howto","tag-centos"],"_links":{"self":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":7,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}