How to fix the different time on PC when dual booted with Linux and Windows
Windows and Linux both are quite different in many respect. This also applies for the interpretition of the time from the hardware Clock. Yes, Computers have the clock which keeps running even if your system is turned off. Thats why we get synced time everytime we boot up computer.
How linux and windows interpret time differently?
Windows assumes the time stored in System clock as local time and uses it as it is. But Linux assumes the system time as UTC time and applies the timezone offset (shifts time according to the timezone set, e.g For india, It is +05:30 , So it will shift the time 5 and Half hours ahead and set the local time.).
How to fix this?
Easiest One solution is to make Linux think the System Clock time as Local Time
Run following command int terminal for this.
timedatectl set-local-rtc 1 --adjust-system-clock
If You want to revert this behaviour , Heres’ the command for that.
timedatectl set-local-rtc 0 --adjust-system-clock
Other method of changing the way how windows interprets time. This one is bit longer and involves editing regitry which can mess with system(typical Windows thing). So that one is not recommeneded.
I hope your problem is now solved. And for any doubts please comment below.