{"id":763,"date":"2014-10-09T20:45:10","date_gmt":"2014-10-09T20:45:10","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=763"},"modified":"2014-10-09T20:45:10","modified_gmt":"2014-10-09T20:45:10","slug":"datetime-centos-system","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/10\/09\/datetime-centos-system\/","title":{"rendered":"Change Date\/Time for CentOS 6"},"content":{"rendered":"<p>Need to set the data for Central Stabndard Time?<\/p>\n<p>CentOS System Date\/Time<br \/>\nPHP Date and Time Global<br \/>\nMySQL Data and Time<\/p>\n<p>The Timezone can been set to MST by running the following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nmv \/etc\/localtime \/etc\/localtime.bak\nln -s \/usr\/share\/zoneinfo\/America\/Chicago \/etc\/localtime\n\n<\/pre>\n<p>#Sync with timeserver<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nservice ntpd stop\nntpdate pool.ntp.org\nservice ntpd start\n<\/pre>\n<p>#Lock the file<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nchattr +i \/etc\/localtime\n\n<\/pre>\n<p>#MySQL uses the system date and time, so it just needed to be restarted to take effect<br \/>\nservice mysqld restart<\/p>\n<p>Added date.ini the following file to \/etc\/php.d\/<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&#x5B;date]\ndate.timezone=America\/Chicago\n\n<\/pre>\n<p>#Apache needs to be restarted afterwards<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n#service httpd restart\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Need to set the data for Central Stabndard Time? CentOS System Date\/Time PHP Date and Time Global MySQL Data and Time The Timezone can been set to MST by running the following: mv \/etc\/localtime \/etc\/localtime.bak ln -s \/usr\/share\/zoneinfo\/America\/Chicago \/etc\/localtime #Sync with timeserver service ntpd stop ntpdate pool.ntp.org service ntpd start #Lock the file chattr +i &#8230; <a title=\"Change Date\/Time for CentOS 6\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/10\/09\/datetime-centos-system\/\" aria-label=\"Read more about Change Date\/Time for CentOS 6\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,24],"tags":[],"class_list":["post-763","post","type-post","status-publish","format-standard","hentry","category-administration","category-datetime"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}