Virtual machines depend on virtualized clock sources, and timekeeping can become inaccurate under certain conditions.
Suspension, migration, host problems, or incorrect time synchronization may contribute to clock drift.
Here are some things to investigate:
- Check current system time: Run
date to compare the VPS clock with a reliable time source.
- Inspect time synchronization: Use
timedatectl status to check whether NTP synchronization is active.
- Check the clock source: Review
/sys/devices/system/clocksource/clocksource0/current_clocksource.
- Review time synchronization logs: Check whether Chrony or systemd-timesyncd is reporting synchronization failures.
- Configure reliable NTP: Use an appropriate time synchronization service to keep the system clock accurate.
- Check migration behavior: If time drift occurs specifically after migration, ask your provider to investigate host-level timekeeping.
For production applications, use UTC internally and maintain reliable time synchronization across all VPS instances.