5

how do i set my hwclock on centos to UTC time permanently.The value changes from UTC to localtime on reboot.This is causing my application to have time drift./etc/sysconfig file UTC value also toggles from true to false after reboot.

krupa kn
  • 51
  • 1
  • 1
  • 2

2 Answers2

5

Run the command,

sudo hwclock --systohc --utc
kjohri
  • 1,166
  • 11
  • 10
0

set UTC to true in /etc/sysconfig/clock config file

Stephane Rouberol
  • 4,286
  • 19
  • 18