Ntp time is wrong, server can't be reached

hi,

I’m using kde, the clock applet time is wrong, it’s UTC and thus lacking 2 hours.
i’m using ntp and pool.server.org as default, if i want to change the server to europe.pool.server.org i can’t, it can’t be reached.

ntpdate seems ok but kde clock is still wrong after reboot

ntpdate pool.ntp.org
25 May 08:10:42 ntpdate[6723]: adjust time server 88.190.29.49 offset -0.001477 sec

what else shall i do to fix this ? THanks :wink:

Are you doing this through YaST==> Date and time ==>“Change”==> Synchronize with NTTP…

Also i can access europe.pool.server.org

http://paste.opensuse.org/images/61028213.png

synchronize does not work

do i need to be UTC ? (hardware clock)

what does it mean that ntp can be a daemon, in what is it helpful ?

No, it should work with local time as well. That said, there was a bug in openSUSE 12.2 regarding local time:
https://bugzilla.novell.com/show_bug.cgi?id=791106
Do you use 12.2?

what does it mean that ntp can be a daemon, in what is it helpful ?

If it is a daemon, it runs all the time. You only need that if you want to be a ntp server in your LAN, f.e.
Otherwise “rcntp ntptimeset” is called every 15 minutes by a cron job.

Does running “rcntp ntptimeset” manually work for you?
Do you have the correct timezone selected in YaST->System->Date and Time?
Do you have cron running? “systemctl status cron.service”

hi,

i’m with 12.3 already thus the bug should be no more, i’d like to be UTC + ntp if possible.
I definitely do not need a daemon all the time (yet).

time zone is ok in yast, yes :wink:

it seems like synchro works but the kde applet still gives the wrong time :

rcntp ntptimeset
25 May 13:57:57 sntp[6516]: Started sntp
2013-05-25 13:57:57.551849 (-0100) -0.00745
Time synchronized with  chronos.cru.fr


# systemctl status cron.service
cron.service - Command Scheduler
          Loaded: loaded (/usr/lib/systemd/system/cron.service; enabled)
          Active: active (running) since Sat, 2013-05-25 11:13:17 CEST; 2h 47min ago
        Main PID: 3384 (cron)
          CGroup: name=systemd:/system/cron.service
                  └ 3384 /usr/sbin/cron -n

Hm? I thought you were on localtime. Because you asked “do i need to be UTC ? (hardware clock)”.
But anyway, this doesn’t really matter, except for this bug in standard 12.2…

it seems like synchro works but the kde applet still gives the wrong time :

rcntp ntptimeset
25 May 13:57:57 sntp[6516]: Started sntp
2013-05-25 13:57:57.551849 (-0100) -0.00745
Time synchronized with  chronos.cru.fr

OK, did you check that your system time is correct after synchronizing? Run “date” for that.
And you can check the hwclock time by running “hwclock -r”. Maybe add the “–debug” option as well to see more verbose output.

And you can configure the kde clock which timezone(s) to show.
Please right-click on it and select “Settings for Digital Clock” (or similar).
Maybe this is set to UTC?

i have this for system date and time :

sam. mai 25 14:42:19 CEST 2013

is this not setting the time to the kde applet ?

it seems the kde clock applet settings were wrong,timezone was set in UTC as you said, when i set it to Paris area time is finally ok .

On the same screen i also have another choice : default set clock can be set to “Local” or " Europe/Paris". What’s the difference ?

The KDE applet reads the current system time, yes.

it seems the kde clock applet settings were wrong,timezone was set in UTC as you said, when i set it to Paris area time is finally ok .

So your problem is fixed now? Great! :slight_smile:

On the same screen i also have another choice : default set clock can be set to “Local” or " Europe/Paris". What’s the difference ?

“Local” should be the timezone you selected in YaST->Date and Time, I think. (Can’t check right now)

I’m seeing some funny business with too
My desktop clock isn’t changing

The hardware clock and the settings in Yast are set correctly.
But the time on the desktop isn’t, it’s one hour behind

FYI

hwclock -r --debughwclock from util-linux 2.21.2
Using /dev interface to clock.
Last drift adjustment done at 1370233870 seconds after 1969
Last calibration done at 1370233870 seconds after 1969
Hardware clock is on local time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2013/06/03 05:37:06
Hw clock time : 2013/06/03 05:37:06 = 1370234226 seconds since 1969
Mon 03 Jun 2013 05:37:06 BST  -0.485153 seconds



Desktop is showing 04:37…

Nevermind

I notice the setting under ‘Digital Clock Settings’ also lets you set time zone. It was set to UTC, once I switched to London it was OK

This appeared to fix it for me as well. However if I return to the ‘date and time - KDE Control Module’ Via ‘adjust date and time’ on the time pane, I STILL get an error connecting to the time server every time I reselect a server (and right after I elevate permissions) despite the ‘right’ BST time now showing (that included daylight saving). I think it’s just incremented from my system clock and is still ntp check broken.

Open Suse 12.3
BTHomehub thinks NTP is being forwarded to this machine.

Right, the NTP settings in the KDE module don’t work (yet?) on openSUSE.
Use YaST->System->“Date and Time” to configure NTP.

Yeah it does seem that the YAST module works fine. Surprised the KDE module doesn’t work. Was it new to this version? Do you reckon it’s best to leave hardware clock set to unc?

It’s not new, but it never worked on openSUSE AFAICR. I will have to check why…

And yes, if you only use Linux it is recommended to set the hardware clock to UTC.

If you are double booting with that one other OS™, there may be a way to get that to work with UTC as well depending on its version (there’s a registry hack for that, but it doesn’t really work well with XP, newer versions could be better).

But openSUSE can handle local time in the hwclock as well, but it won’t change between Summer Time and Winter Time if you select that.

On 2013-07-04 01:06, wolfi323 wrote:

> And yes, if you only use Linux it is recommended to set the hardware
> clock to UTC.
>
> If you are double booting with that one other OS™, there may be a
> way to get that to work with UTC as well depending on its version
> (there’s a registry hack for that, but it doesn’t really work well with
> XP, newer versions could be better).

It works fine on W7 and W8. In Windows, apply the regedit change as
explained here:
SDB:Configuring the clock


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)