Horario de Verao 2008 2009

= Configurando horário de Verão 2008/2009 no Linux =

Verifique o horário atual

[root@servidor ~]# date Sun Oct 12 22:32:56 BRST 2008

e verifique a zona

[root@servidor ~]# zdump -v Brazil/East | grep 200[89] Brazil/East Sun Feb 17 01:59:59 2008 UTC = Sat Feb 16 23:59:59 2008 BRST isdst=1 gmtoff=-7200 Brazil/East Sun Feb 17 02:00:00 2008 UTC = Sat Feb 16 23:00:00 2008 BRT isdst=0 gmtoff=-10800 Brazil/East Sun Oct 12 02:59:59 2008 UTC = Sat Oct 11 23:59:59 2008 BRT isdst=0 gmtoff=-10800 Brazil/East Sun Oct 12 03:00:00 2008 UTC = Sun Oct 12 01:00:00 2008 BRST isdst=1 gmtoff=-7200 Brazil/East Sun Feb 15 01:59:59 2009 UTC = Sat Feb 14 23:59:59 2009 BRST isdst=1 gmtoff=-7200 Brazil/East Sun Feb 15 02:00:00 2009 UTC = Sat Feb 14 23:00:00 2009 BRT isdst=0 gmtoff=-10800 Brazil/East Sun Oct 11 02:59:59 2009 UTC = Sat Oct 10 23:59:59 2009 BRT isdst=0 gmtoff=-10800 Brazil/East Sun Oct 11 03:00:00 2009 UTC = Sun Oct 11 01:00:00 2009 BRST isdst=1 gmtoff=-7200

Para iniciar a alteração, vá para o diretório cd /usr/share/zoneinfo/Brazil

Crie o arquivo verao.2008-2009.zic e adicione as entradas

Rule Brazil 2008 only - Oct 19 00:00 1 S Rule Brazil 2009 only - Feb 15 00:00 0 - Zone Brazil/East -3:00 Brazil BR%sT

Salve e Feche o arquivo.

Execute o comando

zic verao.2008-2009.zic

Conferindo o resultado

[root@servidor Brazil]#zdump -v Brazil/East | grep 200[89] Brazil/East Sun Oct 19 02:59:59 2008 UTC = Sat Oct 18 23:59:59 2008 BRT isdst=0 gmtoff=-10800 Brazil/East Sun Oct 19 03:00:00 2008 UTC = Sun Oct 19 01:00:00 2008 BRST isdst=1 gmtoff=-7200 Brazil/East Sun Feb 15 01:59:59 2009 UTC = Sat Feb 14 23:59:59 2009 BRST isdst=1 gmtoff=-7200 Brazil/East Sun Feb 15 02:00:00 2009 UTC = Sat Feb 14 23:00:00 2009 BRT isdst=0 gmtoff=-10800

Aplicando no sistema

[root@servidor Brazil]#cp East /etc/localtime

Atualizando o horário

[root@servidor Brazil]# ntpdate ntp.usp.br

Conferindo

[root@servidor Brazil]# date Sun Oct 12 21:46:47 BRT 2008

= Ver também =


 * Lotus Domino: Redirecionando Output para um arquivo e executando um shell


 * Mais artigos sobre IBM Domino e Notes