How Do You Programmatically Set the Hardware Clock on Linux?

前端 未结 5 1369
小蘑菇
小蘑菇 2020-12-08 22:50

Linux provides the stime(2) call to set the system time. However, while this will update the system\'s time, it does not set the BIOS hardware clock to match the new system

5条回答
  •  感情败类
    2020-12-08 23:35

    If the text editor is different than kubuntu (kate is the default in editor), use your own with the sudo command in terminal.

    1. run terminal
    2. copy and paste this command sudo kate /etc/default/rcS press Enter
    3. enter user password (your login password) press Enter
    4. text editor will open on the desktop
    5. change the line UTC=yes to UTC=no
    6. and click save (at top of text editor tab bar)
    7. reboot

提交回复
热议问题