[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Acertando a hora



On Fri, Oct 12, 2001 at 07:00:32PM -0300, Pedro Zorzenon Neto wrote:
>   Existe algum modo de compilar o timezone (não me lembro de cabeça agora) que
> voce pode espeficar que dia de cada ano isso muda...

Achei como se faz isso...

use o comando "tzconfig" para colocar seu timezone em America/Sao_Paulo
Depois, edite o arquivo em anexo (Brazil.zic), e depois compile-o com o
comando "zic Brazil.zic". Maiores informações "man zic"

BUGS que eu percebi: o cron daemon não lê automaticamente o timezone
quando ele muda para o horário de verão ou quando volta ao horário normal.
Então as funções agendadas no cron são executadas no timezone de quando
o micro foi reinicializado. fazendo "/etc/init.d/cron restart" o cron lê
o timezone novamente.
acho que outros softwares que rodam por muito tempo e com base no relogio
poderão ter este problema.
# Brazil Sao Paulo timezone information

# Rule  NAME    FROM    TO      TYPE    IN      ON      AT      SAVE    LETTER/S
Rule    Brazil  1994    only    -       Oct     16      0:00    1:00    S
Rule    Brazil  1995    only    -       Feb     19      0:00    0       -
Rule    Brazil  1995    only    -       Oct     15      0:00    1:00    S
Rule    Brazil  1996    only    -       Feb     11      0:00    0       -
Rule    Brazil  1996    only    -       Oct     06      0:00    1:00    S
Rule    Brazil  1997    only    -       Feb     16      0:00    0       -
Rule    Brazil  1997    only    -       Oct     06      0:00    1:00    S
Rule    Brazil  1998    only    -       Mar     01      0:00    0       -
Rule    Brazil  1998    only    -       Oct     11      0:00    1:00    S
Rule    Brazil  1999    only    -       Feb     21      0:00    0       -
Rule    Brazil  1999    only    -       Oct     03      0:00    1:00    S
Rule    Brazil  2000    only    -       Feb     27      0:00    0	-
Rule	Brazil	2000	only	-	Oct	08	0:00	1:00	S
Rule	Brazil	2001	only	-	Feb	18	0:00	0	-

# Zone  NAME                    GMTOFF  RULES/SAVE      FORMAT  [UNTIL]
Zone    America/Sao_Paulo       -3:00   Brazil          BR%sT

Reply to: