Here is the Nowadays you can just use ntp daemon. However, I used to use the traditional means to syncing time. This approach was taught to me by Dickson and works on systems other than Ubuntu.
The advantage over the traditional cron tab approach is,
- Less inconsistency in logs for when there are large time corrections.
- A little processing power and memory, but for a modern server this is negligible.
Code Block | ||
---|---|---|
| ||
date # determine current timezone |
...