From: Matti Nykyri <Matti.Nykyri@iki.fi>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] System date/time goes to GMT when PC wakes from hibernate
Date: Tue, 7 Apr 2015 01:26:41 +0300 [thread overview]
Message-ID: <20150406222641.GB19930@lyseo.edu.ouka.fi> (raw)
In-Reply-To: <1819198.Yax6zhS3jH@navi>
On Mon, Apr 06, 2015 at 06:13:41PM -0400, Fernando Rodriguez wrote:
> >
> > ...into my /etc/hibernate/hibernate.conf. This copies over the BIOS
> > time to the kernel system date. It works, but I'd really like to know
> > why it's necessary in the first place.
> >
>
> There's an option CONFIG_RTC_HCTOSYS on the kernel to do it automatically. I
> think it uses utc so if you use localtime it may mess it up. This also came up
> recently on this list but I can't remember what the problem was so you may
> want to look there.
Don't store hwclock in localtime. It is a hack and you are asking for trouble.
Just store it in UTC. That way the worst mishap is that it gets 1 second to
a wrong direction if you happen to hit a leap second. With localtime you will
always have a change for worse 2 times a year when summer time kicks in.
--
-Matti
next prev parent reply other threads:[~2015-04-06 22:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-06 21:03 [gentoo-user] System date/time goes to GMT when PC wakes from hibernate Walter Dnes
2015-04-06 22:13 ` Fernando Rodriguez
2015-04-06 22:26 ` Matti Nykyri [this message]
2015-04-07 18:26 ` [gentoo-user] [SOLVED] " Walter Dnes
[not found] <pcmrp-3UR-15@gated-at.bofh.it>
2015-04-07 1:59 ` [gentoo-user] " wireless
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150406222641.GB19930@lyseo.edu.ouka.fi \
--to=matti.nykyri@iki.fi \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox