From c070bde72a43bef8fe91e692a6c1434ecaa328d8 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 18 Aug 2024 09:35:16 +0200 Subject: [PATCH] Fix time for QEMU VMs --- scripts/Windows/OS/Install.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 9ce98725..3ff68f97 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -485,8 +485,10 @@ $null = New-Module { switch (Get-Stage) { ([SetupStage]::Configure) { if (Get-Config "valhalla.windows.dualboot.enable") { - # Fix synchronization between Linux and Windows clocks. - Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Value 1 -Type "DWord"; + if (-not (Test-Qemu)) { + # Fix synchronization between Linux and Windows clocks. + Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Value 1 -Type "DWord"; + } # Force time resynchronization $timeZoneOption = "Start";