05-30-2023, 11:37 AM
assuming phosh, you can set it automatic or manual through user interface. if manual setup, i think there is delay when screen updates the time.
time is essentially ntp service on a background.
you could use commands "hwclock" and "date". hwclock sets and gets hardware clock. date sets o.s. time and also set harware time at the same time. keep in mind that hardware clock does not know timezone, it is assumed by the system.
do not forget timezone. british timezone is not same as utc. what pinephone errornessly shows.
time is essentially ntp service on a background.
Code:
# if systemd
sudo systemctl status systemd-timesyncd.service
you could use commands "hwclock" and "date". hwclock sets and gets hardware clock. date sets o.s. time and also set harware time at the same time. keep in mind that hardware clock does not know timezone, it is assumed by the system.
Code:
# note iso format
sudo date -s "2023-05-30 17:12:00"
do not forget timezone. british timezone is not same as utc. what pinephone errornessly shows.