Time discrepancy between 'dmesg' and 'date' in Linux

Viewed 250

I have some kernel module which prints to log like

printk(KERN_INFO "Something\n");

When module was loaded I found that the time in dmesg outruns the current time in date:

-bash-4.4$ dmesg -T | grep some_driver
[Sat May 16 22:25:03 2020] some_driver: Something
-bash-4.4$ date
Sat May 16 22:22:02 UTC 2020

What could be the reason?

P.S. Linux kernel version is 4.4, it lives in VMware vSphere VM.

0 Answers
Related