Fix time for QEMU VMs
This commit is contained in:
parent
fb0a24bb6c
commit
8ec6015817
|
@ -488,8 +488,10 @@ $null = New-Module {
|
||||||
switch (Get-Stage) {
|
switch (Get-Stage) {
|
||||||
([SetupStage]::Configure) {
|
([SetupStage]::Configure) {
|
||||||
if (Get-Config "valhalla.windows.dualboot.enable") {
|
if (Get-Config "valhalla.windows.dualboot.enable") {
|
||||||
|
if (-not (Test-Qemu)) {
|
||||||
# Fix synchronization between Linux and Windows clocks.
|
# Fix synchronization between Linux and Windows clocks.
|
||||||
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Value 1 -Type "DWord";
|
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Value 1 -Type "DWord";
|
||||||
|
}
|
||||||
|
|
||||||
# Force time resynchronization
|
# Force time resynchronization
|
||||||
$timeZoneOption = "Start";
|
$timeZoneOption = "Start";
|
||||||
|
|
Loading…
Reference in a new issue