54 votes

How to force NTPD to update date/time after boot?

After searching around, this method worked for me. As you know, the Raspberry Pi 3 has NTP disabled by default. So by just typing this, the NTP support will be enabled: sudo timedatectl set-ntp True ...
Ariyankj's user avatar
  • 541
44 votes

How to force NTPD to update date/time after boot?

If your clock is way off, you may need to force ntp to sync by doing: sudo /etc/init.d/ntp stop sudo ntpd -q -g sudo /etc/init.d/ntp start
thaspius's user avatar
  • 549
27 votes

How to force NTPD to update date/time after boot?

This question is apparently being "recycled" for some reason, and so it seems appropriate to recycle some old answers also :) The year is now 2023... This question was asked in 2013. ntpd ...
Seamus's user avatar
  • 22k
23 votes

Time and timezone issues on Raspberry Pi

Here are some suggestions. Use the raspi-config utility to reset the timezone even if already you used a different tool to set it. sudo raspi-config Manually set the time to be somewhat accurate. ...
Jon Musselwhite's user avatar
20 votes

How to force NTPD to update date/time after boot?

If you set the Time Zone in raspi-config the Raspberry Pi will automatically update the time on boot, if connected to the internet. sudo raspi-config Select Internationalisation Options Select I2 ...
mwd27's user avatar
  • 351
13 votes

How to force NTPD to update date/time after boot?

See forum post Time does not sync on Pi 3 and with official dongle. ntpd emits IP/UDP packets with the ToS field set to 0xc0. So that is quite similar to the other issue I (and many others) have with ...
pradeep's user avatar
  • 131
12 votes
Accepted

How to disable or shutdown NTP daemon?

I believe you're looking for systemctl disable systemd-timesyncd.service I wouldn't worry about syslog trashing your SD card (it would take years if not decades), but disabling a service you don't ...
Dmitry Grigoryev's user avatar
11 votes
Accepted

Switch out the X1 Oscillator on a RPI 2/3

It is entirely possible to do this with a bit of careful rework (magnifier and hot air gear is required to remove the old crystal) and you do get very significant improvement in performance. I took an ...
colintd's user avatar
  • 357
9 votes
Accepted

How to set custom NTP servers in recent raspbian (Stretch) systems?

Edit /etc/systemd/timesyncd.conf , especially the second line [Time] NTP=your.servername.goes.here FallbackNTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org #...
flakeshake's user avatar
  • 6,235
8 votes

Time and timezone issues on Raspberry Pi

In many Linux systems, the clock keeps track of time in UTC. Because of the Raspberry Pi's poor time-keeping, it's smart to install and properly setup a service to help with time, such as ntp. This ...
earthmeLon's user avatar
  • 1,404
8 votes
Accepted

How do I set Raspbian to use the primary time server time.nist.gov?

Time server settings are saved in /etc/ntp.conf so open your favorite editor and make this change. sudo nano /etc/ntp.conf The relevant section looks like this: So all you need to do is change it to ...
SDsolar's user avatar
  • 2,348
7 votes

NTP is not enabled (doesn't exist) but Pi figures out timezone and time. How?

In Stretch the synchronisation is done using a systemd service (systemd-timesyncd.service) and a new program (systemd-timesyncd) For time status information use timedatectl For status information ...
Dirk's user avatar
  • 3,541
5 votes

NTP is not enabled (doesn't exist) but Pi figures out timezone and time. How?

I'm posting an answer to augment @Dirk's answer, not to take exception. I believe @Dirk's answer is completely accurate, but it did pique my curiosity for details. I'm posting some of those details ...
Seamus's user avatar
  • 22k
5 votes

ntp doesn't work in raspberry pi

Run it as sudo ntpd -q -g note that space between the options.
Dougie's user avatar
  • 5,311
4 votes

Chrony doesn't sync time with gpsd

My chrony.conf now looks like this, and chrony does synchronize with GPS: driftfile /var/lib/chrony/drift makestep 1 10 keyfile /etc/chrony/chrony.keys commandkey 1 allow # set larger delay to ...
Frank Kusters's user avatar
4 votes

Raspberry Pi 2: Sync clock with local server?

You want to set up your Raspberry Pis to sync their time with your Windwos Server via the Network Time Protocol (NTP). In Raspbian ntp is enabled by default, therefore you only need to add your ...
Fantilein1990's user avatar
4 votes
Accepted

GPS (USB) with NTP has a consistantly large offset and high jitter from public NTP sources

So...a couple of things. Firstly, "why" you need the PPS... Let's back up a bit. In the ancient world of the 1970s and 1980s, when one spoke of "the system clock" or of a system's &...
Steven High's user avatar
3 votes
Accepted

Can I tell if NTP Synch has happened since boot?

ntpd is what is syncing your time, normally it tries to slowly adjust the time to stop time suddenly jumping forward or backwards. The exception to this is when the clock is out by a large amount. ...
Michael Daffin's user avatar
3 votes

Chrony doesn't sync time with gpsd

Remove noselect from the refclock line, otherwise that refclock will not be taken into account.
beta-tester's user avatar
3 votes

How to force NTPD to update date/time after boot?

My son's Rasberry Pi would not update the time out of the box and after trying all the suggestions above I could get it to update manually but not automatically. Finally after looking elsewhere as ...
deLabe's user avatar
  • 31
3 votes

How to force NTPD to update date/time after boot?

I had a similar problem with a Pi not syncing. None of these solutions worked. Turns out my network environment was blocking the NTP port (123). The solution for me was sudo apt install htpdate ...
vchev005's user avatar
3 votes

How to force NTPD to update date/time after boot?

You don't need to use ntp to solve the issue. There is a script that reads the date from a server and you only need set the date to be the result of that script (your Raspberry Pi needs to be ...
Amjad Abujamous's user avatar
3 votes
Accepted

Raspberry pi time wrong

Turns out my ISP blocked port 125. I followed this guide: HOWTO: Run Your Own NTP Server When Your ISP Blocks Ports Which explains how to use ntpdate on a non blocked port. Thanks @Karim and @...
seed_87's user avatar
  • 131
3 votes

Temperature variations affect NTP server accuracy

You have indeed hit on a variable worth controlling! The method that Gary Miller of the NTPsec project settled on was to deliberately add CPU load, automatically adjusted to the thermal readings, to ...
Royce Williams's user avatar
3 votes

How to set NTP client on RPi-4 to point to a local IP on my lan?

NTP servers from timesyncd.conf are preceded by ones given by DHCP. Try disabling those using [DHCP] UseNTP=false in /etc/systemd/networkd.conf. Alternatively, try [Time] NTP= NTP=myserver in ...
Dmitry Grigoryev's user avatar
3 votes

How to use ntp time as default time while using Raspberry Pi as a gateway?

Recent Raspberry Pi OS includes systemd-timesyncd as the NTP client. Unfortunately for you, systemd-timesyncd does not implement the server functionality, so it cannot provide network time to clients ...
Dmitry Grigoryev's user avatar
3 votes
Accepted

Raspberry pi cannot synchronize clock

After digging a little more into the network, I was able to find out that the problem lies in the packets being dropped because the time server didn't respond in time. By increasing the ...
treskilion's user avatar
3 votes

Raspberry Pi network time, and accurate time for astronomy Data taking needs, at a loss

You can run systemd-timesyncd as @Milliways has documented or you can switch back to the old ntpd. Support for this was dropped by Raspbian/RaspiOS a few years ago. To switch first you need to disable ...
Dougie's user avatar
  • 5,311
2 votes

Raspberry pi time wrong

If your Raspberry is running Ubuntu you can run this command ntpdate ntp.ubuntu.com and it will update the time automatically according to ubuntu time server, However if you want Ubuntu to update ...
Karim H's user avatar
  • 121
2 votes

How can a raspberry pi get time from another pi

apt-get install ntp <-- server apt-get install ntpdate <-- client
Flash Thunder's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible