Wednesday, November 4, 2026 Today’s Paper
Log in Join free
Vol. I · No. 36 Texas Edition
Wednesday, Nov 4
Texas first. Then the world.
Always free Updated 1 minute ago
Read. React. Discuss.
Tech

Ask HN: Azure Linux VM's RTC loses 12 hours on reboot if set to 12:xx UTC?

By klaas- 2 min read 2 views 0 comments

I've noticed a problem, and it happens reproducibly, but I have not seen this being talked about anywhere.Can anyone else reproduce that, I have reproduced it easily with several VMs in different locations, both RHEL/Ubuntu behave the same, so I am fairly sure this is on Azure side of tihngs, but not 100% sure :) Seeing as this should then happen with every boot between 12:00 and 13:00 UTC I am wondering why I would be the only one noticing it :) It messes with systemds boot time, that is where I noticed it -- it claimed updates had not been installed because the upgrades were installed in the future (12 hours ahead) and system time was earlier than that.I am guessing Azure is doing some magic in background because they run their Azure Hypervisors in localtime and Linux guests like to have UTC RTCs, under "normal" HyperV there is an offset from localtime of the hypervisor being saved per VM starting with 0 on first boot, but on Azure I guess they automated it? And somewhere in that "calculation" they have an am/pm or 12hour confusion?Reproducer, RHEL9, disable chrony from overwriting RTC, set fake time to 12:xx, reboot, observe 00:xx rtc time $ sed -i.bak…

Hacker News (Newest) Original story · news.ycombinator.com
Read the full story

Discussion (0)

No comments yet. Start the conversation!