sudo dpkg-reconfigure tzdata Wrong Time for Amererica/Caracas

jesusguevarautomotriz's picture

Forums: 

Hi all, I am trying to set the right itme on muy laptop with Debian 7.7 Whezzy but I fail an update of the correct time.

Caracas Time Now is: 20:13 Hrs
http://www.timeanddate.com/worldclock/venezuela/caracas

UTC Time Now is: 00:42
http://www.timeanddate.com/worldclock/timezone/utc

sudo dpkg-reconfigure tzdata

[sudo] password for user:

Current default time zone: 'America/Caracas'
Local time is now: Tue Nov 11 16:43:35 VET 2014. << Its Wrong
Universal Time is now: Tue Nov 11 21:13:35 UTC 2014.

Any ideas? Thanks

that is how I solved it

jesusguevarautomotriz's picture

I note that there is no NTP servers to Venezuela, the less active or for Colombia or Peru

Brazil — br.pool.ntp.org (21)
Chile — cl.pool.ntp.org Diablo
Argentina — ar.pool.ntp.org (12)
Venezuela — ve.pool.ntp.org (0)
Peru — pe.pool.ntp.org (0)
Uruguay — uy.pool.ntp.org (1)
Colombia — co.pool.ntp.org (0)
Ecuador — ec.pool.ntp.org (4)

In fact it gives me error when trying to synchronize with

server 0.south-america.pool.ntp.org
server 1.south-america.pool.ntp.org
server 2.south-america.pool.ntp.org
server 3.south-america.pool.ntp.org

But it seems already solved, the case was there to stop the NTP service before upgrading, as below soucione thank you very much everyone.

# /etc/init.d/ntp stop
[ ok ] Stopping NTP server: ntpd.

# ntpdate -u server 0.south-america.pool.ntp.org
Error resolving server: Name or service not known (-2)
13 Nov 16:39:56 ntpdate[10298]: Can't find host server: Name or service not known (-2)
13 Nov 16:40:04 ntpdate[10298]: adjust time server 200.160.7.186 offset -0.013057 sec

Right time !!

For good measure and to ensure to get a cleaner result without any error message

# ntpdate -u 0.north-america.pool.ntp.org13 Nov 16:41:18 ntpdate[10305]: adjust time server 199.102.46.75 offset 0.036014 sec

Right time !!

# hwclock --show
Thu 13 Nov 2014 01:52:05 PM VET -0.752540 seconds

Wrong Time; in the BIOS is 16:42 Hrs.

# hwclock --systohc

# hwclock --showThu 13 Nov 2014 04:44:02 PM VET -0.081203 seconds

Right time in the BIOS !!

# /etc/init.d/ntp start
[ ok ] Starting NTP server: ntpd.

Fin.