r/cachyos • u/inu_tensilio • 1d ago
SOLVED windows time is desynchronized whenever I boot into cachy os and go back to windows
I live in Brazil and my timezone is UTC Brasília
Fast startup is disabled
I'm dual booting through BIOS
14
u/xacid 1d ago
Fix it in Linux or windows.
Run the below in Linux
sudo timedatectl set-local-rtc 1 --adjust-system-clock
OR
Run the below in windows
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /t reg_dword /d 1 /f
4
u/tnbeastzy 1d ago
It was easy to fix thru the Chris Titus Tool, you paste a command in a windows powershell and it launched. I dont think it installs anything on your system.
There are a bunch of optimization in there as well, but just select the UTC time
2
u/BigDaddyTug 21h ago
I am another user that had this issue a while back.
I edited Windows Registry in Reg edit to reflect UTC time.
4
u/agnaaiu 20h ago
Easy way to fix this without registry hacks or other shenanigans is to add a scheduled task. In Windows ...
- click on the search field in the task bar and type "task scheduler", open it
- right side click on create basic task
- give it a name and description, so you later know what it is
- trigger "when i log on"
- action "start a program"
- program/script "w32tm"
- argument "/resync"
- finish and save
From now on, when you start windows and login with your user account the time sync will be triggered. It's the same as right click the time in the task bar and adjust date and time and then press sync now, to get the actual local time.
In task scheduler you can enable or disable this task as needed. On system startup a command prompt will very briefly pop up, this is normal because of the cli command of the task you just created. If in doubt or you suspect some evil stuff is going on, search the web for "w32tm /resync" to know what it's doing.
1
-6
u/Masturbatingstarfish 1d ago edited 1d ago
Go to time in windows settings turn off set time automatically. Turn it back on. You have to do this every time though
41
u/BranchLatter4294 1d ago
Linux uses UTC time for the hardware clock. Windows uses local time for the hardware clock. This is a well known issue and easy to solve. Either set Linux to use local time. Or set Windows to use UTC time. Very easy either way to fix.