{"id":38,"date":"2014-08-27T14:42:08","date_gmt":"2014-08-27T14:42:08","guid":{"rendered":"http:\/\/rodrigoslompo.com\/?p=38"},"modified":"2014-08-27T14:42:08","modified_gmt":"2014-08-27T14:42:08","slug":"como-alterar-o-fuso-horario-em-um-servidor-linux-debian","status":"publish","type":"post","link":"https:\/\/rodrigoslompo.com\/?p=38","title":{"rendered":"Como alterar o fuso hor\u00e1rio em um servidor Linux Debian"},"content":{"rendered":"<p>Para alterar o fuso hor\u00e1rio em um servidor linux Debian, voc\u00ea deve primeiro verificar qual o a configura\u00e7\u00e3o atual, voc\u00ea pode fazer isso digitando:<\/p>\n<pre>root@server:~# cat \/etc\/timezone\r\nEtc\/UTC\r\n<\/pre>\n<p>Para configurar o fuso hor\u00e1rio, utilizar o comando dpkg-reconfigure tzdata e escolher a zona correcta no menu interactivo:<\/p>\n<pre class=\"code\">root@server:~# dpkg-reconfigure tzdata<\/pre>\n<figure id=\"attachment_39\" aria-describedby=\"caption-attachment-39\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-america.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-39\" src=\"http:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-america-300x191.png\" alt=\"Menu interativo dpkg-reconfigure tzdata.\" width=\"300\" height=\"191\" srcset=\"https:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-america-300x191.png 300w, https:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-america.png 722w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-39\" class=\"wp-caption-text\">Menu interativo dpkg-reconfigure tzdata.<\/figcaption><\/figure>\n<figure id=\"attachment_40\" aria-describedby=\"caption-attachment-40\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-sao_paulo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-40\" src=\"http:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-sao_paulo-300x191.png\" alt=\"Menu interativo dpkg-reconfigure tzdata.\" width=\"300\" height=\"191\" srcset=\"https:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-sao_paulo-300x191.png 300w, https:\/\/rodrigoslompo.com\/wp-content\/uploads\/2014\/08\/alterar-fuso-horario-servidor-linux-debian-sao_paulo.png 722w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-40\" class=\"wp-caption-text\">Menu interativo dpkg-reconfigure tzdata.<\/figcaption><\/figure>\n<p>A sa\u00edda deve ser algo parecido com:<\/p>\n<pre>Current default time zone: 'America\/Sao_Paulo'\r\nLocal time is now:      Wed Aug 27 11:29:02 BRT 2014.\r\nUniversal Time is now:  Wed Aug 27 14:29:02 UTC 2014.<\/pre>\n<p>Data e hora<\/p>\n<p>O comando date mostra a data actual do sistema:<\/p>\n<pre>root@server:~# date\r\nWed Aug 27 11:40:07 BRT 2014\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Para alterar o fuso hor\u00e1rio em um servidor linux Debian, voc\u00ea deve primeiro verificar qual o a configura\u00e7\u00e3o atual, voc\u00ea pode fazer isso digitando: root@server:~# cat \/etc\/timezone Etc\/UTC Para configurar o fuso hor\u00e1rio, utilizar o comando dpkg-reconfigure tzdata e escolher a zona correcta no menu interactivo: root@server:~# dpkg-reconfigure tzdata A sa\u00edda deve ser algo parecido [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[4,5,3,6],"_links":{"self":[{"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=\/wp\/v2\/posts\/38"}],"collection":[{"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38"}],"version-history":[{"count":1,"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodrigoslompo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}