'Pacífico / Auckland' time = hora UTC

1

Estou tentando consertar a hora no meu host Ubuntu 16.04, mas não consigo corrigir o fuso horário. Por alguma razão, o Ubuntu acredita que o fuso horário do Pacífico / Auckland é o mesmo que o UTC e não possui um deslocamento de 12 horas. O fuso horário 'Pacífico / Auckland' deve ser UTC +12

sudo dpkg-reconfigure tzdata

Current default time zone: 'Pacific/Auckland'  
Local time is now:      Tue Sep 26 09:08:37 UTC 2017.  
Universal Time is now:  Tue Sep 26 09:08:37 UTC 2017.  

status timedatectl

      Local time: Tue 2017-09-26 09:13:45 Pacific  
  Universal time: Tue 2017-09-26 09:13:45 UTC  
        RTC time: Tue 2017-09-26 09:13:45
       Time zone: Pacific/Auckland (Pacific, +0000)
 Network time on: no
NTP synchronized: no
 RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
This mode can not be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.

Alguém pode me dizer como consertar isso?

Apenas fiz um

sudo ntpdate nz.pool.ntp.org  

and got
25 Sep 22:38:17 ntpdate[1422]: step time server 130.217.226.49 offset -43211.035177 sec
and did
date
Mon Sep 25 22:49:05 Pacific 2017
But the current time is 11:49am.

    
por user211096 25.09.2017 / 23:36

1 resposta

0

Encontrou o problema. Meu / usr / share / zoneinfo / NZ foi corrompido por um teste de unidade rouge. O arquivo "NZ" era originalmente um arquivo binário e foi substituído por um arquivo de texto com "NZST-12NZDT, M9.5.0, M4.1.0 / 3"
Eu copiei o arquivo NZ de outra máquina e isso resolveu meu problema.

status timedatectl

agora diz:
      Hora local: Sáb 2017-05-12 02:33:09 NZDT
  Horário universal: Sex 2017-09-29 13:33:09 UTC -         Hora da RTC: Sex 2017-09-29 13:33:12
       Fuso horário: Pacific / Auckland (NZDT, +1300)
 Hora da rede: sim
NTP sincronizado: não há  RTC no local TZ: não

    
por user211096 29.09.2017 / 03:40