个人工具

老旧文章/禁止系统日期时间设为UTC

来自Ubuntu中文

跳转至: 导航, 搜索

禁止系统日期时间设为UTC

sudo cp /etc/default/rcS /etc/default/rcS_backup
sudo gedit /etc/default/rcS
  • 搜寻这一行文字
...

UTC=yes

...
  • 用下面这一行取代
UTC=no
  • 保存编辑过的文件 (范 例)
  • System -> Administration -> Time and Date
  • Set the correct time/date
sudo /etc/init.d/hwclock.sh restart