r1 - 24 Oct 2006 - 10:33:22 - MarcoAndreFerreiraDiasYou are here: TWiki >  Main Web > LogBook > EntryDescriptionNo14

Acertar o horário de verão nos servidores

Description

O NTP não ajuda no horário de verão pois ele não muda a hora, muda o fuso horário. Faremos o seguinte:
  • Criamos o arquivo
[root@spgrid root]# vim /usr/share/zoneinfo/Brazil/verao2006.zic
  • Neste arquivo teremos
Rule Brazil 2005 only - Oct 16 00:00 1 S
Rule Brazil 2006 only - Feb 19 00:00 0 -

Zone Brazil/East -3:00 Brazil BR%sT
OBS Nos próximos anos é só ir adicionando linhas deste tipo. No caso o horário de verão começa dia 16 de Outubro e termina dia 19 de Fevereiro. Nosso timezone é East.
  • rodamos o zic
[root@spgrid root]# zic /usr/share/zoneinfo/Brazil/verao2006.zic
[root@spgrid root]# cp /usr/share/zoneinfo/Brazil/East /etc/localtime
E o horário fica correto novamente.
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Home
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback