On a QEMU main host, I have many hosted centos VM running.
For test purpose, I change system date/time on these VM, but not on the main host.
I get strange behavior when getting dates via cpp calls.
I noticed 'hwclock -r' on a VM returns the main host date-time, while on VM date, or calls to localtime and time.h's stuff returns VM time
hope to be clear enough to get your lights...