今天遇到了一个问题,发现程序读取的时间比实际的时间快了几分钟。

执行 timedatectl status 发现 Local time比实际的快,但是RTC time是准确的。

各种google也没搞懂怎么回事,因为rtc这个关键字被webrtc这个技术给污染了(可见webrtc有多火)。

解决这个问题的方法如下:

# timedatectl set-time "yyyy-MM-dd hh:mm:ss" # 设置系统时间,将字符串替换成具体时间
# hwclock --systohc # 将硬件时间和本地时间设置为同一个值

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-03-27
  • 2022-12-23
  • 2022-01-27
  • 2022-01-20
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2021-12-20
  • 2021-10-12
  • 2021-12-26
  • 2021-11-05
相关资源
相似解决方案