Recently installed Debian 10 "Buster" at an old computer here and now it's showing
$ date output with 1 hour less.
How could be sycronized system time with NTP GMT -3, America/Recife timezone?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
To verify the timezone of your system (mine is Europe/Berlin), run
$ cat /etc/timezone Europe/Berlin
If it is wrong, run
sudo dpkg-reconfigure tzdata
Recife and check if the printed local time is now correct.
You can also print the UTC date with
which should be your local time +3 hours.
If the time difference is exactly one hour, it's most likely not a time issue, but a time zone issue.
Maybe you don't need ntp, you just need to set the right time zone.
This answer might help.
You should be able to do so using ntp or ntpdate.
apt install ntpdate ntpdate pool.ntp.org
ntpdate is mostly useful for one-time synchronizations. Whereas the ntp daemon would run in background, and keep your clock up to date:
apt install ntp cat <<EOF >/etc/ntp.conf driftfile /var/lib/ntp/ntp.drift server pool.ntp.org restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery restrict 127.0.0.1 restrict ::1 EOF systemctl start ntp systemctl enable ntp
Though you might just be using the wrong timezone. Some GMT-3 example:
ln -sf /usr/share/zoneinfo/America/Argentina/Buenos_Aires /etc/localtime