Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #225550

Re: BIOS time fine, Linux/Debian's isn't! ...

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: BIOS time fine, Linux/Debian's isn't! ...
Date 2020-07-30 16:10 +0200
Message-ID <AyhpU-6e6-7@gated-at.bofh.it> (permalink)
References <AyeLo-4yV-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Jul 30, 2020 at 07:19:12AM -0400, Albretch Mueller wrote:
>  I used the same laptop with another hard drive with a Windows
> installation which shows the time correctly.
> 
>  How do you make Linux get the time from the BIOS at start time and
> take it from there?

Your posts are sometimes nearly... whimsical.

By how much is "Debian time" off? In what timezone do you live?

Background (as another poster has already hinted at in this thread):
Windows is totally naive wrt time: it expects the BIOS clock to
reflect the local time (DST included). Therefore, the BIOS clock
has to be massaged twice a year (if your timezone does the DST
thing).

There is a way to tell hwclock to interpret the BIOS clock at boot
time: you set HWCLOCKPARS in /etc/default/hwclock (CAVEAT: UNTESTED!)
like so:

HWCLOCKPARS=-l

("-l" is for "local", the default being "-u" for UTC). In the default
config file, this line is commented out with a '#' at the beginning;
make sure to remove that.

Should HWCLOCKPARS be set to something, just add the "-l" at the end,
separated by some whitespace.

Note that this localtime thing is discouraged, there are some ways
for it to go wrong (notably, local times are ambiguous in the Spring
change).

Microsoft and time. They didn't miss any opportunity to get it wrong.
Each time.

Cheers
-- t

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

BIOS time fine, Linux/Debian's isn't! ... Albretch Mueller <lbrtchx@gmail.com> - 2020-07-30 13:20 +0200
  Re: BIOS time fine, Linux/Debian's isn't! ... Andrew Cater <amacater@gmail.com> - 2020-07-30 14:00 +0200
  Re: BIOS time fine, Linux/Debian's isn't! ... Brad Rogers <brad@fineby.me.uk> - 2020-07-30 14:10 +0200
    Re: BIOS time fine, Linux/Debian's isn't! ... Anssi Saari <as@sci.fi> - 2020-07-30 16:10 +0200
      Re: BIOS time fine, Linux/Debian's isn't! ... <tomas@tuxteam.de> - 2020-07-30 16:20 +0200
      Re: BIOS time fine, Linux/Debian's isn't! ... Brad Rogers <brad@fineby.me.uk> - 2020-07-30 17:00 +0200
        Re: BIOS time fine, Linux/Debian's isn't! ... <tomas@tuxteam.de> - 2020-07-30 18:00 +0200
          Re: BIOS time fine, Linux/Debian's isn't! ... Brad Rogers <brad@fineby.me.uk> - 2020-07-30 18:20 +0200
            Re: BIOS time fine, Linux/Debian's isn't! ... Andrei POPESCU <andreimpopescu@gmail.com> - 2020-07-31 08:00 +0200
              Signature [was: BIOS time fine, Linux/Debian's isn't! ...] <tomas@tuxteam.de> - 2020-07-31 11:30 +0200
                Re: Signature [was: BIOS time fine, Linux/Debian's isn't! ...] Brad Rogers <brad@fineby.me.uk> - 2020-07-31 12:00 +0200
                Re: Signature [was: BIOS time fine, Linux/Debian's isn't! ...] Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-31 13:50 +0200
                Re: Signature [was: BIOS time fine, Linux/Debian's isn't! ...] Reco <recoverym4n@enotuniq.net> - 2020-07-31 14:40 +0200
                Re: Signature [was: BIOS time fine, Linux/Debian's isn't! ...] The Wanderer <wanderer@fastmail.fm> - 2020-07-31 14:50 +0200
                Re: Signature [was: BIOS time fine, Linux/Debian's isn't! ...] Reco <recoverym4n@enotuniq.net> - 2020-07-31 17:00 +0200
                Re: Signature [was: BIOS time fine, Linux/Debian's isn't! ...] The Wanderer <wanderer@fastmail.fm> - 2020-07-31 18:10 +0200
                Re: Signature [was: BIOS time fine, Linux/Debian's isn't! ...] The Wanderer <wanderer@fastmail.fm> - 2020-07-31 13:20 +0200
                Tomas has a signature which isn't a .sig Dan Ritter <dsr@randomstring.org> - 2020-07-31 17:50 +0200
                Re: [OT] Lisp is back (was: Tomas has a signature which isn't a .sig) Reco <recoverym4n@enotuniq.net> - 2020-07-31 18:00 +0200
                Re: [OT] Lisp is back Teemu Likonen <tlikonen@iki.fi> - 2020-07-31 18:30 +0200
                Re: Tomas has a signature which isn't a .sig tomas@tuxteam.de - 2020-07-31 21:10 +0200
                Re: Tomas has a signature which isn't a .sig The Wanderer <wanderer@fastmail.fm> - 2020-07-31 21:30 +0200
                Re: Tomas has a signature which isn't a .sig Brian <ad44@cityscape.co.uk> - 2020-07-31 21:40 +0200
                Re: Tomas has a signature which isn't a .sig Brian <ad44@cityscape.co.uk> - 2020-07-31 21:30 +0200
                Re: Tomas has a signature which isn't a .sig <tomas@tuxteam.de> - 2020-07-31 21:50 +0200
                Re: Tomas has a signature which isn't a .sig Charles Curley <charlescurley@charlescurley.com> - 2020-07-31 22:00 +0200
              Signature [was: BIOS time fine, Linux/Debian's isn't! ...] <tomas@tuxteam.de> - 2020-07-31 12:00 +0200
              Re: BIOS time fine, Linux/Debian's isn't! ... Brad Rogers <brad@fineby.me.uk> - 2020-07-31 12:00 +0200
                Signature not working rhkramer@gmail.com - 2020-07-31 13:20 +0200
                Re: Signature not working rhkramer@gmail.com - 2020-07-31 13:30 +0200
                Re: Signature not working The Wanderer <wanderer@fastmail.fm> - 2020-07-31 13:30 +0200
                Re: Signature not working Brad Rogers <brad@fineby.me.uk> - 2020-07-31 13:40 +0200
                Re: Signature not working Stefan Monnier <monnier@iro.umontreal.ca> - 2020-07-31 15:00 +0200
                Re: Signature not working Brad Rogers <brad@fineby.me.uk> - 2020-07-31 16:00 +0200
                Re: Signature not working Brad Rogers <brad@fineby.me.uk> - 2020-07-31 17:10 +0200
                Re: Signature not working Stefan Monnier <monnier@iro.umontreal.ca> - 2020-07-31 17:40 +0200
                Re: Signature not working The Wanderer <wanderer@fastmail.fm> - 2020-07-31 18:10 +0200
                Re: Signature not working Stefan Monnier <monnier@iro.umontreal.ca> - 2020-07-31 19:00 +0200
                Re: Signature not working David Wright <deblis@lionunicorn.co.uk> - 2020-07-31 17:40 +0200
                Re: Signature not working Brad Rogers <brad@fineby.me.uk> - 2020-07-31 18:00 +0200
                Re: Signature not working The Wanderer <wanderer@fastmail.fm> - 2020-07-31 18:10 +0200
                Re: Signature not working David Wright <deblis@lionunicorn.co.uk> - 2020-08-01 05:50 +0200
                Re: Signature not working Stefan Monnier <monnier@iro.umontreal.ca> - 2020-08-03 06:10 +0200
                Re: Signature not working Reco <recoverym4n@enotuniq.net> - 2020-07-31 17:10 +0200
                Re: Signature not working Stefan Monnier <monnier@iro.umontreal.ca> - 2020-07-31 17:30 +0200
  Re: BIOS time fine, Linux/Debian's isn't! ... Cindy Sue Causey <butterflybytes@gmail.com> - 2020-07-30 14:10 +0200
  Re: BIOS time fine, Linux/Debian's isn't! ... <tomas@tuxteam.de> - 2020-07-30 16:10 +0200
  Re: BIOS time fine, Linux/Debian's isn't! ... Albretch Mueller <lbrtchx@gmail.com> - 2020-07-31 14:00 +0200
    Re: BIOS time fine, Linux/Debian's isn't! ... <tomas@tuxteam.de> - 2020-07-31 15:20 +0200
      Re: BIOS time fine, Linux/Debian's isn't! ... Albretch Mueller <lbrtchx@gmail.com> - 2020-08-08 16:20 +0200
        Re: BIOS time fine, Linux/Debian's isn't! ... Andrew Cater <amacater@gmail.com> - 2020-08-08 16:40 +0200
          Re: BIOS time fine, Linux/Debian's isn't! ... Andrei POPESCU <andreimpopescu@gmail.com> - 2020-08-11 13:10 +0200

csiph-web