Closed eylenburg closed 2 months ago
It is not an issue anymore since v3.07. System time is based on LANGUAGE
and REGION
environment value by default.
If it is still different, you can specify the timezone in the unattend xml file like
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ComputerName>*</ComputerName>
<TimeZone>UTC</TimeZone>
</component>
It's the same level with tag ComputerName
The time zone is set correctly but the time is still off by an hour. And that's not a problem in itself because I can just manually set the time in the Windows settings. But after a reboot it is changed again to be one hour wrong. I wonder why?
edit: So right now it's 10:47 in the UK. The Windows VM is set to the UK timezone (see screenshot above) but shows 9:47. I can manually change the time in Windows or change the timezone to Europe (+1 hour) to get to 10:47 in Windows. But after a reboot of my PC the Windows VM is set to 9:47 and UK time zone again, so it undoes my time zone change and it also has the wrong time for the time zone it's supposed to be in.
I start my VM with the command podman-compose --file ~/.config/winapps/compose.yaml start
, not sure if that's wrong but in any case I'd assume the Windows VM remembers the settings I change inside the VM?
add this command into your install.bat
reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1
or just run it if you don't want to reinstall
Amazing, that fixed it! Thank you!
Operating system
Fedora Kinoite 40
Description
I noticed that the default docker/podman VM has the wrong time, several hours in the future (!) despite being set to a US time zone while I'm in Europe. This lead to a wrong time and date in file modification dates.
So I went to the Time & Date settings in Windows, disabled "set time automatically" and manually set the correct time and date and time zone.
This fixed the time being several hours off the real time, however after each PC reboot, the time in the VM is changed to be one hour behind the real time.
I can manually change it in the VM's settings again, but after a reboot it will again show me the time one hour behind. Does any have any idea what could cause this?
It might lead to data loss if for example you're syncing your files and the modification date is used to decide which version is the newer one.
I previously filed this bug with the Winapps project (https://github.com/winapps-org/winapps/issues/173)
Docker compose
Docker log
Screenshots (optional)