{"id":2275,"date":"2016-07-22T14:32:35","date_gmt":"2016-07-22T18:32:35","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2275"},"modified":"2017-12-12T16:05:32","modified_gmt":"2017-12-12T21:05:32","slug":"set-up-timezone-centos-7","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/","title":{"rendered":"Set up a new timezone on CentOS 7"},"content":{"rendered":"<h1>Set up a new timezone on CentOS 7<\/h1>\n<p>Your computer has both a hardware clock and a software clock. The hardware clock is rudimentary, keeping track only of current values for the year, month, day, hour, minute and second, much like an old-school digital alarm clock.<\/p>\n<p>The system clock is much more advanced, having knowledge not only of the current time but also the current timezone and whether it&#8217;s Daylight Savings Time or not. The system clock calculates these values from the hardware clock based on adjustments that you set. You can easily make these adjustments by means of a utility called timedatectl which is included with Systemd.<\/p>\n<h2>Getting started<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running CentOS 7. <\/p>\n<h2>Tutorial<\/h2>\n<p>As mentioned above, you&#8217;ll use timedatectl to set the time and date on CentOS 7. This utility is distributed as part of the systemd system and service manager which is included in the standard CentOS distribution. The timedatectl command has the following features:<br \/>\n\u2022\tReview the current date and time<br \/>\n\u2022\tChange the date and time<br \/>\n\u2022\tSet up the system time zone<br \/>\n\u2022\tEnable an automatic synchronization of the system clock with a remote server via NTP, the Network Time Protocol<\/p>\n<p><strong>Set up a new time zone on CentOS 7 using timedatectl<\/strong><\/p>\n<p>With this command, you can see your current timezone settings using timedatectl: <\/p>\n<p><code>timedatectl<\/code><\/p>\n<p><code class=\"gris\">Local time: Fri 2016-06-02 04:21:01 EDT<br \/>\n  Universal time: Fri 2016-06-02 08:21:01 UTC<br \/>\n        RTC time: n\/a<br \/>\n       Time zone: America\/New_York (EDT, -0400)<br \/>\n     NTP enabled: n\/a<br \/>\nNTP synchronized: no<br \/>\n RTC in local TZ: no<br \/>\n      DST active: yes<br \/>\n Last DST change: DST began at<br \/>\n                  Sun 2016-03-13 01:59:59 EST<br \/>\n                  Sun 2016-03-13 03:00:00 EDT<br \/>\n Next DST change: DST ends (the clock jumps one hour backwards) at<br \/>\n                  Sun 2016-11-06 01:59:59 EDT<br \/>\n                  Sun 2016-11-06 01:00:00 EST<\/code><\/p>\n<p>You can also list all timezone options that are available to you using the timedatectl list-timezones command. The output for this command is very large. To obtain more specific results, you can use grep to filter for certain strings. For example, if you like a list of the timezones located in the Americas, you can use this command below:<\/p>\n<p><code>timedatectl list-timezones | grep America<\/code><\/p>\n<p><code class=\"gris\">America\/Adak<br \/>\nAmerica\/Anchorage<br \/>\nAmerica\/Anguilla<br \/>\nAmerica\/Antigua<br \/>\nAmerica\/Araguaina<br \/>\nAmerica\/Argentina\/Buenos_Aires<br \/>\nAmerica\/Argentina\/Catamarca<br \/>\nAmerica\/Argentina\/Cordoba<br \/>\nAmerica\/Argentina\/Jujuy<br \/>\nAmerica\/Argentina\/La_Rioja<br \/>\nAmerica\/Argentina\/Mendoza<br \/>\nAmerica\/Argentina\/Rio_Gallegos<br \/>\nAmerica\/Argentina\/Salta<br \/>\nAmerica\/Argentina\/San_Juan<br \/>\nAmerica\/Argentina\/San_Luis<br \/>\nAmerica\/Argentina\/Tucuman<br \/>\nAmerica\/Argentina\/Ushuaia<br \/>\nAmerica\/Aruba<br \/>\nAmerica\/Asuncion<br \/>\nAmerica\/Atikokan<br \/>\nAmerica\/Bahia<br \/>\nAmerica\/Bahia_Banderas<br \/>\nAmerica\/Barbados<br \/>\n...<\/code><\/p>\n<p>Set up your timezone with whichever timezone you wish. In our example, we&#8217;ll choose &#8220;America\/New_York&#8221;:<\/p>\n<p><code>timedatectl set-timezone America\/New_York<\/code><\/p>\n<p>In addition you may configure a specific date and time, using this following syntax:<\/p>\n<p><code>timedatectl set-time \"YYYY-MM-DD HH:MM:SS\"<\/code><\/p>\n<p> We suggest that you set your server date and time using an universal clock server using a Network Time Protocol.<\/p>\n<h2>Conclusion<\/h2>\n<p>It&#8217;s important to ensure that your system clock is set accurately, as inaccurate dates, times and\/or timezones can wreak havoc with files and program operation. Luckily, if you&#8217;re running Systemd, timedatectl is an easy way to make adjustments as necessary. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Set up a new timezone on CentOS 7 Your computer has both a hardware clock and a software clock. The hardware clock is rudimentary, keeping track only of current values for the year, month, day, hour, minute and second, much like an old-school digital alarm clock. The system clock is much more advanced, having knowledge<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-2275","post","type-post","status-publish","format-standard","hentry","category-applications","operating_system-centos-7"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Set up a new timezone on CentOS 7 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will walk you through the process of setting up a new timezone on your CentOS 7 server. Read now &amp; Set the current timezone on your server !\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set up a new timezone on CentOS 7 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will walk you through the process of setting up a new timezone on your CentOS 7 server. Read now &amp; Set the current timezone on your server !\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-22T18:32:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T21:05:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"Set up a new timezone on CentOS 7\",\"datePublished\":\"2016-07-22T18:32:35+00:00\",\"dateModified\":\"2017-12-12T21:05:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/\"},\"wordCount\":407,\"commentCount\":0,\"articleSection\":[\"Applications\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/\",\"name\":\"Set up a new timezone on CentOS 7 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"datePublished\":\"2016-07-22T18:32:35+00:00\",\"dateModified\":\"2017-12-12T21:05:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will walk you through the process of setting up a new timezone on your CentOS 7 server. Read now & Set the current timezone on your server !\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/set-up-timezone-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set up a new timezone on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set up a new timezone on CentOS 7 - Globo.Tech","description":"This tutorial will walk you through the process of setting up a new timezone on your CentOS 7 server. Read now & Set the current timezone on your server !","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"Set up a new timezone on CentOS 7 - Globo.Tech","og_description":"This tutorial will walk you through the process of setting up a new timezone on your CentOS 7 server. Read now & Set the current timezone on your server !","og_url":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/","og_site_name":"Globo.Tech","article_published_time":"2016-07-22T18:32:35+00:00","article_modified_time":"2017-12-12T21:05:32+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"Set up a new timezone on CentOS 7","datePublished":"2016-07-22T18:32:35+00:00","dateModified":"2017-12-12T21:05:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/"},"wordCount":407,"commentCount":0,"articleSection":["Applications"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/","url":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/","name":"Set up a new timezone on CentOS 7 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-07-22T18:32:35+00:00","dateModified":"2017-12-12T21:05:32+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will walk you through the process of setting up a new timezone on your CentOS 7 server. Read now & Set the current timezone on your server !","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/set-up-timezone-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"Set up a new timezone on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2275"}],"version-history":[{"count":4,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2275\/revisions"}],"predecessor-version":[{"id":4015,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2275\/revisions\/4015"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}