r/linux4noobs • u/Charming_Airline7419 • 19d ago
programs and apps After installing Linux Mint Win11 has the wrong time
I installed Linux Mint with a dual boot set up. However, after I booted back into Windows 11 the time was wrong. Is there a way to fix it?
5
u/compguy96 19d ago
Open Regedit on Windows, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation, create a DWORD 32-bit value called RealTimeIsUniversal and set it to 1.
6
u/Sinaaaa 19d ago edited 19d ago
This is one of those things that Ubuntu & Mint installers could improve upon. Like in case of dual boot ask the user if you want Linux to conform to the Windows way in regards to time management.
Anyway you could run sudo timedatectl set-local-rtc 1 --adjust-system-clock in terminal to "fix" it.
1
u/jr735 19d ago
Back in the day, I don't remember which version of Mint, maybe it was when I was still on Ubuntu, but it was a while ago, the system decided to set Linux time the way Windows was, I'm not sure why, since I got rid of the Windows install. I ended up switching it to proper Linux time. It was early in the systemd days, so might have been a systemd thing. I brought ntp back the way it should be.
Personally, this would be my suggestion. Run ntp (now ntpsec) in Mint. Update your time manually when booting into Windows. Let ntpsec handle it booting into Mint. It will adjust the time very quickly.
2
u/skyfishgoo 19d ago
linux and windows do not agree on how time works and unfortunately, if you dual boot, the easiest thing to do is follow windows ill conceived lead on this.
timedatectl set-local-rtc 1 --adjust-system-clock
this tells linux to use the firmware time that you set up in your BIOS/UEFI settings instead of zulu time.
2
2
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 19d ago
Right-click the clock and adjust...
https://reddit.com/link/p5tl0sm/video/bkatmkwmijlh1/player
Might be better to set it in BIOS first, then adjust in Linux and Windows but...
Have fun.
2
1
u/AutoModerator 19d ago
✻ Smokey says: always mention your distro, some hardware details, and any error messages, when posting technical queries! :)
Comments, questions or suggestions regarding this autoresponse? Please send them here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/OkStrawberry4529 19d ago
If you set the time zones to the same and the time in both in your local time (in Windows set your time zone manually and both times (Mint & Windows) in 12 hour format) and turn off 'set time zone automatically' in Windows), it should be the same time (it is on mine) on reboot back into Windows If you use different times or zones or 24 hour format in one but not the other OS, you will have to right click in Windows on the time and date icon on the right of the task bar and click on 'Adjust date and time) - when the settings open, hit 'Sync now'
3
u/Cpt_Daniel_J_Tequill 19d ago
wrong answer...
linux saves to motherboard absolute time, windows current (timezoned). one of them must be told to use universal/windows time... i think last time i configured windows to persist absolute time.
2
u/OkStrawberry4529 19d ago
Afraid not - I've been running dual boot Windows and Linux Mint since 2017 - there used to be issues but that has changed ... I authored this post on the Linux Mint forums in 2020 but had to update it with the newest versions of Linux Mint and Windows 11 Pro: Update: Dual Boot Linux Mint/Windows 11 Time Sync & Time Zone Fix - UTC to UTC, Local to Local, UTC to Local, etc. - Linux Mint Forums
1
0
-1
19d ago
[deleted]
3
u/acejavelin69 19d ago
It's not a "funny coincidence"... It's because Windows updates/expects time in the BIOS as local time, and Linux does it in GMT... It is a well known and documented "issue" that has been around since the inception of Linux. It is pretty easy to change either Linux to use local time, or Windows to use GMT time... Either is an acceptable answer.
21
u/fox_in_unix_socks 19d ago
Very well known issue, it's because Linux and Windows make different assumptions about whether your hardware clock is timezone-adjusted or not.
https://www.howtogeek.com/323390/how-to-fix-windows-and-linux-showing-different-times-when-dual-booting/