You are not logged in.

#1 2022-03-05 17:22:35

RounakDutta
Member
From: West Bengal, India
Registered: 2022-02-11
Posts: 192
Website

[SOLVED] Windows and arch dualboot time problems

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

#2 2022-03-05 17:23:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: [SOLVED] Windows and arch dualboot time problems

Offline

#3 2022-03-05 17:29:50

RounakDutta
Member
From: West Bengal, India
Registered: 2022-02-11
Posts: 192
Website

Re: [SOLVED] Windows and arch dualboot time problems

V1del wrote:

I added the registry key through command prompt and then I booted into linux and I did hwclock --systohc but still the problem persists. sad

Offline

#4 2022-03-05 17:31:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Windows and arch dualboot time problems

Give us the output of `timedatectl` so we can first make sure everything is set right in Arch and the RTC

Offline

#5 2022-03-05 17:32:28

RounakDutta
Member
From: West Bengal, India
Registered: 2022-02-11
Posts: 192
Website

Re: [SOLVED] Windows and arch dualboot time problems

Scimmia wrote:

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: no

Last edited by RounakDutta (2022-03-05 17:33:00)

Offline

#6 2022-03-05 17:35:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Windows and arch dualboot time problems

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

#7 2022-03-05 17:36:16

RounakDutta
Member
From: West Bengal, India
Registered: 2022-02-11
Posts: 192
Website

Re: [SOLVED] Windows and arch dualboot time problems

Scimmia wrote:

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

#8 2022-03-05 17:50:12

RounakDutta
Member
From: West Bengal, India
Registered: 2022-02-11
Posts: 192
Website

Re: [SOLVED] Windows and arch dualboot time problems

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

#9 2022-03-05 17:53:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: [SOLVED] Windows and arch dualboot time problems

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

#10 2022-03-05 18:07:09

RounakDutta
Member
From: West Bengal, India
Registered: 2022-02-11
Posts: 192
Website

Re: [SOLVED] Windows and arch dualboot time problems

V1del wrote:

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/localtime

during installing arch but still whenever I finish installing arch the time synchronisation just turns off idk why. sad

Last edited by RounakDutta (2022-03-05 18:08:08)

Offline

#11 2022-03-05 18:19:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: [SOLVED] Windows and arch dualboot time problems

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

Board footer

Powered by FluxBB