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


Groups > linux.debian.user > #195887

Re: Correct: System Thinks Hardware Clock is UTC

From Ben Finney <bignose@debian.org>
Newsgroups linux.debian.user
Subject Re: Correct: System Thinks Hardware Clock is UTC
Date 2018-05-19 02:40 +0200
Message-ID <vQY4F-Zu-3@gated-at.bofh.it> (permalink)
References <vQXLj-T9-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Patrick Bartek <nemommxiv@gmail.com> writes:

> I could use hwclock --set --date=<yadda yadda> with the --localtime
> option, etc., to correct this but is there an easier way?

There is only one clock involved in this: the hardware clock.

By telling the operating system that your hardware clock is set to UTC,
you have told the operating system how to *render* the hardware clock's
time for your local time zone.

Setting the clock will set the hardware clock. By using a “set the
clock” tool, you will set the hardware clock — but the clock-setting
tool will take care of converting the time zone correctly.

I think the generally-applicable advice is correct: tell the OS that
your clock is set to UTC, and leave it to the operating system to figure
out the weirdness of time zones.

So I think you've done the right thing: tell the OS to keep the hardware
clock at UTC. Now you just need to tell it what the time is :-)

Assuming your machine is internet-connected, tell the operating system
to keep your hardware clock in sync with the Network Time Protocol, by
installing an NTP server. I can't recall what the default is; I use the
‘chrony’ package.

-- 
 \           “If you do not trust the source do not use this program.” |
  `\                                —Microsoft Vista security dialogue |
_o__)                                                                  |
Ben Finney

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


Thread

Correct: System Thinks Hardware Clock is UTC Patrick Bartek <nemommxiv@gmail.com> - 2018-05-19 02:20 +0200
  Re: Correct: System Thinks Hardware Clock is UTC Ben Finney <bignose@debian.org> - 2018-05-19 02:40 +0200
    Re: Correct: System Thinks Hardware Clock is UTC Patrick Bartek <nemommxiv@gmail.com> - 2018-05-20 21:40 +0200
  Re: Correct: System Thinks Hardware Clock is UTC Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-19 03:00 +0200
    Re: Correct: System Thinks Hardware Clock is UTC Patrick Bartek <nemommxiv@gmail.com> - 2018-05-20 21:20 +0200
      Re: Correct: System Thinks Hardware Clock is UTC Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-20 21:50 +0200
        Re: Correct: System Thinks Hardware Clock is UTC Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-20 22:00 +0200
        Re: Correct: System Thinks Hardware Clock is UTC Patrick Bartek <nemommxiv@gmail.com> - 2018-05-21 01:10 +0200
  Re: Correct: System Thinks Hardware Clock is UTC David Wright <deblis@lionunicorn.co.uk> - 2018-05-19 04:00 +0200
    Re: Correct: System Thinks Hardware Clock is UTC Patrick Bartek <nemommxiv@gmail.com> - 2018-05-20 21:20 +0200
      Re: Correct: System Thinks Hardware Clock is UTC Steve McIntyre <steve@einval.com> - 2018-05-20 23:00 +0200
        Re: Correct: System Thinks Hardware Clock is UTC Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-05-20 23:40 +0200
      Re: Correct: System Thinks Hardware Clock is UTC Greg Wooledge <wooledg@eeg.ccf.org> - 2018-05-21 15:10 +0200
        Re: Correct: System Thinks Hardware Clock is UTC Patrick Bartek <nemommxiv@gmail.com> - 2018-05-21 17:20 +0200
      Re: Correct: System Thinks Hardware Clock is UTC Michael Stone <mstone@debian.org> - 2018-05-21 15:20 +0200
        Re: Correct: System Thinks Hardware Clock is UTC Felix Miata <mrmazda@earthlink.net> - 2018-05-21 16:00 +0200
          Re: Correct: System Thinks Hardware Clock is UTC Michael Stone <mstone@debian.org> - 2018-05-21 16:10 +0200
            Re: Correct: System Thinks Hardware Clock is UTC Felix Miata <mrmazda@earthlink.net> - 2018-05-21 23:30 +0200

csiph-web