bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH] Adding RTC device (work in progress)


From: Samuel Thibault
Subject: Re: [RFC PATCH] Adding RTC device (work in progress)
Date: Wed, 20 Nov 2024 14:37:38 +0100

Hello,

Zhaoming Luo, le mer. 20 nov. 2024 20:17:48 +0800, a ecrit:
> On 11/9/24 10:58 PM, Sergey Bugaev wrote:
> > I know that RTC can be configured to either represent local time, or
> > in UTC. MS Windows prefers the former, GNU/Linux (or rather systemd?)
> > prefers the latter [6]. Would it maybe make sense for the driver to
> > have an --option to *pretend* the RTC stores UTC time when it's
> > actually storing local time, transparently converting the time on
> > read/write? The driver would learn the local timezone the same way all
> > processes do (tzset?).
> > 
> > [6]: https://wiki.archlinux.org/title/System_time
> 
> I think we don't need to add an option to pretend the RTC stores UTC time
> when it's actually storing local time, because I think the Hurd expects RTC
> storing UTC time.

Debian GNU/Hurd can support both, it's up to hwclock to compute what
it wants to put in the RTC, and is configured in /etc/adjtime, see man
hwclock.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]