You are not logged in.
I did a arch and windows dualboot but my windows was showing the wrong time so I decided to manually set the correct time for windows and then after 5 or 6 hours when I booted into my arch linux it started showing the wrong time. I decided to manually set the correct time for linux but now my windows is showing the wrong time. I want both of my operating system to show the correct time . GMT +5:30 (INDIA)
Last edited by RounakDutta (2022-03-05 17:58:59)
Offline
Configure Windows to use UTC: https://wiki.archlinux.org/title/System … ft_Windows
Offline
Configure Windows to use UTC: https://wiki.archlinux.org/title/System … ft_Windows
I added the registry key through command prompt and then I booted into linux and I did hwclock --systohc but still the problem persists. ![]()
Offline
Give us the output of `timedatectl` so we can first make sure everything is set right in Arch and the RTC
Offline
Give us the output of `timedatectl` so we can first make sure everything is set right in Arch and the RTC
[rounak@archpc ~]$ timedatectl
Local time: Sun 2022-03-06 04:31:30 IST
Universal time: Sat 2022-03-05 23:01:30 UTC
RTC time: Sat 2022-03-05 23:01:30
Time zone: Asia/Kolkata (IST, +0530)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: noLast edited by RounakDutta (2022-03-05 17:33:00)
Offline
So that's where you need to start, your time in Arch is way off. You did hwclock --systohc, but did you set the system time first?
Offline
So that's where you need to start, your time in Arch is way off. You did hwclock --systohc, but did you set the system time first?
How can I set the time ?
Last edited by RounakDutta (2022-03-05 17:50:27)
Offline
Oh ok now I got it I did -
timedatectl set-time "2022-03-05 23:14:20"
sudo hwclock --systohc
Now it is working.
Offline
You might want to consider enabling time synchronisation to prevent that from drifting away, with timedatectl set-ntp true for example.
In any case if this is solved, please mark it as such by editing the title and adding [SOLVED]
Offline
You might want to consider enabling time synchronisation to prevent that from drifting away, with timedatectl set-ntp true for example.
In any case if this is solved, please mark it as such by editing the title and adding [SOLVED]
Ya I already did
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtimeduring installing arch but still whenever I finish installing arch the time synchronisation just turns off idk why. ![]()
Last edited by RounakDutta (2022-03-05 18:08:08)
Offline
That just configures which timezone you're in and doesn't account for potential clock skews which can happen over time: https://wiki.archlinux.org/title/System_time#Time_skew
Last edited by V1del (2022-03-05 18:19:45)
Offline