documentation/docs/void-desktop-setup/Localtime.md

26 lines
527 B
Markdown
Raw Normal View History

2023-08-25 17:44:30 +02:00
# Localtime
2023-08-16 22:09:10 +02:00
A "Network Time Protocol Daemon" (nptd for short) can sync the system clock with internet standard time servers. The `chrony` daemon is used as ntpd. Install it by:
```
# xbps-install -Sy chrony
```
Then to active its service:
```
ln -s /etc/sv/chronyd /var/service
```
To configure the timezone edit the `/etc/rc.conf` file.
```
HARDWARECLOCK="localtime"
```
And symlink the correct timezone to `/etc/localtime`:
```
2023-08-17 13:37:50 +02:00
# ln -sf /usr/share/zoneinfo/<Region>/<City> /etc/localtime
2023-08-16 23:13:16 +02:00
```