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


Groups > linux.debian.user > #256316

Re: differences between hwclock <-> date due to time zone issues? ...

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: differences between hwclock <-> date due to time zone issues? ...
Date Thu, 23 Mar 2023 23:50:01 +0100
Message-ID <GcBUR-eCe9-7@gated-at.bofh.it> (permalink)
References <GcAYN-eBEG-1@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Thu Mar 23 22:46:05 2023
Old-Return-Path <pdkcox@cox.net>
X-Amavis-Spam-Status No, score=-5.957 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.25, LDO_WHITELIST=-5, RDNS_NONE=0.793] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
Authentication-Results cox.net; auth=pass (PLAIN) smtp.auth=pdkcox@cox.net
X-Authority-Analysis v=2.4 cv=MdR/Brzf c=1 sm=1 tr=0 ts=641cd68d a=8EnVsyGT+RIxJJEp9TVVrQ==:117 a=8EnVsyGT+RIxJJEp9TVVrQ==:17 a=IkcTkHD0fZMA:10 a=XUs7S7qX3kJPRs5EUBYA:9 a=QEXdDO2ut3YA:10
Reply-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
X-Cmae-Envelope MS4xfGMddbJBZvk8AUe/PoNzwZbmO3S2is0W/h/tsxTu6xXO2y1FkZZ1M9xXOhNt/Mqsc1tXRpJlL9grSISxw28me5rojXn3EeDKB28tlqhslnNl4S5+mc0x JlEzRKGJTMxBNJwUT4Ujbdsoed1WyiPBrXFgsXd6/9TeScGANy3UijLXMs6Hls67D9hU9u4UE+D9HKQrl30e7O2B/6MZWxpAAPeLOhC/b7o7rZybkIsB2nHu GkaL/02UDNZVA3jLmER+3M1pOLPF9WLXLdl14ozoht4=
X-Mailing-List <debian-user@lists.debian.org> archive/latest/797603
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/ZBzWiMoeCdOUGAL2@axis.corp
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 23 Mar 2023 17:45:28 -0500
X-Original-Message-ID <ZBzWiMoeCdOUGAL2@axis.corp>
X-Original-References <CAFakBwhvEThCnmbfSA1uZJw1BTTznY+J=gfEGQ1nqRRkzBmyOw@mail.gmail.com>
Xref csiph.com linux.debian.user:256316

Show key headers only | View raw


On Thu 23 Mar 2023 at 21:41:40 (+0000), Albretch Mueller wrote:
>  I am using this (yes, visually cr@ppy ;-)) code snippet to set back
> the time 5 hours. hwclock tells me it worked fine but the terminal
> windows opened before and after running hwclock still give me the
> "old" time setting?

You're in my time zone, aren't you, so your hardware clock (UTC)
should be five hours ahead of the system clock (CDT). What are
the two times on your system?

  # hwclock --verbose
  hwclock from util-linux 2.36.1
  System Time: 1679611469.019755
  Trying to open: /dev/rtc0
  Using the rtc interface to the clock.
  Last drift adjustment done at 1650159782 seconds after 1969
  Last calibration done at 1650159782 seconds after 1969
  Hardware clock is on UTC time
  Assuming hardware clock is kept in UTC time.
  Waiting for clock tick...
  ...got clock tick
→ Time read from Hardware Clock: 2023/03/23 22:44:30
  Hw clock time : 2023/03/23 22:44:30 = 1679611470 seconds since 1969
  Time since last adjustment is 29451688 seconds
  Calculated Hardware Clock drift is 0.000000 seconds
→ 2023-03-23 17:44:28.998946-05:00
  # 

Cheers,
David.

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


Thread

differences between hwclock <-> date due to time zone issues? ... Albretch Mueller <lbrtchx@gmail.com> - 2023-03-23 22:50 +0100
  Re: differences between hwclock <-> date due to time zone issues? ... Stefan Monnier <monnier@iro.umontreal.ca> - 2023-03-23 23:10 +0100
  Re: differences between hwclock <-> date due to time zone issues? ... Cindy Sue Causey <butterflybytes@gmail.com> - 2023-03-23 23:10 +0100
    Re: differences between hwclock <-> date due to time zone issues? ... Cindy Sue Causey <butterflybytes@gmail.com> - 2023-03-23 23:30 +0100
  Re: differences between hwclock <-> date due to time zone issues? ... David Wright <deblis@lionunicorn.co.uk> - 2023-03-23 23:50 +0100
  Re: differences between hwclock <-> date due to time zone issues? ... Andy Smith <andy@strugglers.net> - 2023-03-24 15:50 +0100
    Re: differences between hwclock <-> date due to time zone issues? ... Albretch Mueller <lbrtchx@gmail.com> - 2023-03-24 18:20 +0100
      Re: differences between hwclock <-> date due to time zone issues? ... Greg Wooledge <greg@wooledge.org> - 2023-03-24 22:50 +0100
        Re: differences between hwclock <-> date due to time zone issues? ... Stefan Monnier <monnier@iro.umontreal.ca> - 2023-03-24 23:00 +0100
          Re: differences between hwclock <-> date due to time zone issues? ... Greg Wooledge <greg@wooledge.org> - 2023-03-24 23:10 +0100
            Re: differences between hwclock <-> date due to time zone issues? ... Stefan Monnier <monnier@iro.umontreal.ca> - 2023-03-25 00:20 +0100
              Re: differences between hwclock <-> date due to time zone issues? ... Albretch Mueller <lbrtchx@gmail.com> - 2023-03-25 01:10 +0100
                Re: differences between hwclock <-> date due to time zone issues? ... Max Nikulin <manikulin@gmail.com> - 2023-03-25 04:20 +0100
                Re: differences between hwclock <-> date due to time zone issues? ... Albretch Mueller <lbrtchx@gmail.com> - 2023-03-25 04:50 +0100
                Re: differences between hwclock <-> date due to time zone issues? ... Max Nikulin <manikulin@gmail.com> - 2023-03-25 06:00 +0100
                Re: differences between hwclock <-> date due to time zone issues? ... Max Nikulin <manikulin@gmail.com> - 2023-03-25 09:00 +0100
              Re: differences between hwclock <-> date due to time zone issues? ... David Wright <deblis@lionunicorn.co.uk> - 2023-03-25 05:30 +0100
      Re: differences between hwclock <-> date due to time zone issues? ... David Wright <deblis@lionunicorn.co.uk> - 2023-03-25 05:30 +0100
        Re: differences between hwclock <-> date due to time zone issues? ... Felix Miata <mrmazda@earthlink.net> - 2023-03-25 05:50 +0100

csiph-web