Install hwclock on UTC on linux

how to install hwclock on centos at UTC constantly. The value changes from UTC to localtime upon reboot. This causes my application to have drift./etc/sysconfig time. A UTC value also switches from true to false after a reboot.

+4
source share
2 answers

Run the command

sudo hwclock --systohc --utc 
+4
source

set UTC to true in the configuration file / etc / sysconfig / clock

0
source

All Articles