Correct the system time and setup Network Time Protocol (NTP)
Based on work by Frontalot
1. Correct the LinkStation time zone setting. Use the command:
2. Install the necessary NTP packages. Use the command:
apt-get install ntp ntp-simple ntp-server ntpdate
3. Your system will now automatically communicate with NTP servers and adjust the system clock.
4. The NTP client usually synchronizes the system clock upon boot. However, if you rarely reboot your LinkStation then you may wish to manually force ntpdate to resynchronize the system clock. Use the command:
5. After a few days uptime the clock can drift off by a few minutes. One can make a 'cron' job of the above command easily through the webmin interface. It's recommended not to do this to occur at midnight (or on the hour) as the time servers will usually be under a heavy load.
6. Edit /etc/ntp.conf to use more time servers. Enter in the appropriate place two, three or more as per:
server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org
(:note About ntpd | It may take some time, perhaps even a few weeks, for ntpd to build enough drift data to proactively deal with clock drift:)
7. The NTP daemon will automatically communicate with the available NTP servers and adjust the system clock accordingly. It will also build a drift file to help reduce future clock drift.