0

I have installed Ubuntu 20.04 in a partition with Windows 10 on my HP Notebook. Initially whenever I would switch between the systems there would be a time offset (Neither Ubuntu nor Windows showed the right time). After using the command timedatectl set-local-rtc 1, Windows shows the correct time and Linux shows GMT time instead of local time. Since there are times when the network connection is poor, hence I don't want to rely on the internet synced time. Is there a way in which I can fix my Linux time to local time instead of GMT and not disturb the Windows clock in process?

Results oftimedatectl status :

Attached is the timedatectl status command's output

karel
  • 114,770
  • What time zone are you in? – PonJar Feb 10 '23 at 09:28
  • 1
    There is a comprehensive guide to this problem here https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts I think all you need to do now is set your time zone in the Ubuntu settings app – PonJar Feb 10 '23 at 17:20
  • @PonJar My time zone is IST (GMT+5:30). – Shweta Kiran Feb 11 '23 at 10:02
  • @PonJar Also, I have already used the timedatectl command but after using that it only shows correct time in windows but not in Linux. Also, if NTP requires internet then it might not be helpful during times when there are network issues. – Shweta Kiran Feb 11 '23 at 12:00
  • Show us the output of timedatectl status as an edit to your question. Have you set your time zone to IST in Linux since getting Windows to show the correct time? – PonJar Feb 11 '23 at 20:57
  • @PonJar, please find attached the output of timedatectl status as an edit to this question. The time zone is set to IST since getting Windows to show the right time. – Shweta Kiran Feb 12 '23 at 05:47
  • I am using Windows 10 and I it is nowhere clearly mentioned whether the UTC setting works good for Windows 10. Also, since I have a lot of data on my windows, I just want to be sure this method won't interfere with my other system functionalities. – Shweta Kiran Feb 12 '23 at 10:44
  • I guess with any change you make to a system there is an element of risk. Based on the absence of information about problems in Windows the probability is that there are no common issues with making this change. The link provided by @Nmath would have a load of comments if the changes described led to problems. – PonJar Feb 12 '23 at 12:47
  • I did timedatectl set-local-rtc 0 and seems like both the clocks run at the same time now. – Shweta Kiran Feb 13 '23 at 07:00

1 Answers1

0

I used the command timedatectl set-local-rtc 0 and seems like both the clocks run at the same time now. Thanks to all the comments for the help!