Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: SoftwareType on 10 July 2024, 03:14:21

Title: How to set Runit clock to local?
Post by: SoftwareType on 10 July 2024, 03:14:21
I'm still new to this, but I just wanted to know how to get the clock in Runit set to LOCAL.

Couldn't find anything on the internet that explains, neither could find the clock command itself. As I am booting on Windows, every switch is like a clock being different or broken because of different time mode.

Anyone have a command for it or smth like that? If there's no way to do it, I can try a workaround, but I'm guessing I would need a third party app for the XFCE Desktop Environment
Thanks
Title: Re: How to set Runit clock to local?
Post by: tintin on 10 July 2024, 04:21:56
Hello,

A possible solution that will need to be adapted for runit*:
https://forum.artixlinux.org/index.php/topic,6829.msg41455.html#msg41455

*
Code: [Select]
sudo pacman -Sy ntp-runit
Title: Re: How to set Runit clock to local?
Post by: Caramon2 on 10 July 2024, 07:49:31
Windows does it wrong. Set it to UTC: https://fishilico.github.io/generic-config/windows/utc-clock.html
Title: Re: How to set Runit clock to local?
Post by: Caramon2 on 11 July 2024, 09:17:31
Windows does it wrong. Set it to UTC: https://fishilico.github.io/generic-config/windows/utc-clock.html
To complete it:

I descriped it a Friend yesterday (google-translated from german):

-----
Windows is not even compatible with itself, for example if you use two Windows installations on the same computer, as I used to do for a long time:

Primary XP x64 and on the 2nd HD (standalone bootable) my old XP Home as a “backup Windows” if the primary one goes wrong, or as a cross-check.

Case 1:

After the time change, XP x64 adjusted the RTC time and when I booted XP-Home at some point, maybe weeks later, it changed the time by an hour because it was running the last time before the time change.

This happened after every time change!

Case 2:

After the time change, I restore a backup from before the time change and then when I boot it, it changes the time by one hour.

Both always annoyed me because I didn't yet know the UTC trick.
-----

And attached something I found years ago:
Title: Re: How to set Runit clock to local?
Post by: Artist on 11 July 2024, 18:29:07
Windows indeed messes with the RTC.
To prevent it from doing so start CMD as Adminstrator, and run:

Code: [Select]
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f

And please don't tell anybody I provide help for windwoes  ;)

artist

Title: Re: How to set Runit clock to local?
Post by: SoftwareType on 12 July 2024, 00:58:27
Windows does it wrong. Set it to UTC: https://fishilico.github.io/generic-config/windows/utc-clock.html

Windows indeed messes with the RTC.
To prevent it from doing so start CMD as Adminstrator, and run:

Code: [Select]
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f

And please don't tell anybody I provide help for windwoes  ;)

artist


Thank you 2 of u! It worked here

also artist yes sure i wont :D