Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't set date and time automatically

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
urdrwho10
Posts: 109
Joined: 2020-03-04 21:53
Has thanked: 17 times
Been thanked: 4 times

Can't set date and time automatically

#1 Post by urdrwho10 »

When I go to set date and time I have a box that is grayed out and I can't tic the box to chose to set time and date automatically. Why and or what can I do to be able to chose the option?

Debian 10 KDE

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Can't set date and time automatically

#2 Post by Hallvor »

[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: Can't set date and time automatically

#3 Post by FreewheelinFrank »

Do you need something like systemd-timesyncd? I have that on my system.

urdrwho10
Posts: 109
Joined: 2020-03-04 21:53
Has thanked: 17 times
Been thanked: 4 times

Re: Can't set date and time automatically

#4 Post by urdrwho10 »

Installed ntp.

I have an industry specific program, it is Windows only, after I finish up my work, I;ll go back to Debian and the time was not correct.

At first after ntp install I didn't think it was working but then I looked down at the time and it was correct. I guess it was getting network time.

Still don't know why the time is different after leaving windows but I'm good now that it is getting network time.

What is systemd-timesyncd and is it better than ntp?

Thanks

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: Can't set date and time automatically

#5 Post by 4D696B65 »

urdrwho10 wrote: 2022-10-06 01:22
Still don't know why the time is different after leaving windows but I'm good now that it is getting network time.

What is systemd-timesyncd and is it better than ntp?

Thanks
Debian uses UTC time and windows as far as I know uses local time. Hardware stores the time and windows like to take control

ntp is the old method and is actually being replaced by ntpsec. systemd is newer yet.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2082
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 225 times

Re: Can't set date and time automatically

#6 Post by FreewheelinFrank »

urdrwho10 wrote: 2022-10-06 01:22 Installed ntp.

What is systemd-timesyncd and is it better than ntp?
Description from Synaptic:
The package contains the systemd-timesyncd system service that may be used to
synchronize the local system clock with a remote Network Time Protocol server.
As to the second question, I have no idea. I was actually expecting to find ntp installed but it isn't. I had to search for an installed package that might be updating system time from the internet, and that's what I found. It is a dependency of Systemd, and Debian 10 uses Systemd, so I don't know why KDE couldn't use it (XFCE seems to, as system time matches internet time exactly, but XFCE doesn't seem to have any time/date settings dialogue).

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Can't set date and time automatically

#7 Post by sunrat »

How to Fix Windows and Linux Showing Different Times When Dual Booting

Personally I use Option 2 in that article - set Windows to use UTC, and have for many years without issue. You can just download the .reg file and run it in Windows.

I just checked my Bullseye KDE system, it uses systemd-timesyncd.service to do the network sync which must be default as I never changed it. No ntp packages are installed.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply