archive mirror
 help / color / mirror / Atom feed
From: "Zhang, ShuoX" <>
To: "" <>
Subject: BMC clock unable to sync time offset from RTC
Date: Tue, 28 Sep 2021 10:52:18 +0000	[thread overview]
Message-ID: <> (raw)

[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]

     I have a question and need your help. The time of bmc has always been UTC time. I set the time zone through the operating system and then reboot  bmc. Although the time is no longer 1970, the time is still UTC time.

     The following steps:
     1. From SUT Linux OS
     # timedatectl set-timezone Asia/Shanghai
     # hwclock -w
     # hwclock -r
     2021-08-12 23:47:04.936372+08:00

     2. Reboot BMC, the BMC will sync the clock with RTC
     3. HTTP GET /redfish/v1/Managers/bmc, check DateTime field, "DateTime" = "2021-08-12 15:47:04.936372+00:00"

     I think it should be when the os time is synced to the bmc, the time zone is not passed, if I want to get the time zone time, do I need to add one under the xyz.openbmc_project.Time.EpochTime interface of the xyz.openbmc_project.Time.Manager service Properties, or are there other ways?

root@intel-obmc:~# busctl introspect  xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc
NAME                                TYPE      SIGNATURE  RESULT/VALUE     FLAGS
org.freedesktop.DBus.Introspectable interface -          -                -
.Introspect                         method    -          s                -
org.freedesktop.DBus.ObjectManager  interface -          -                -
.GetManagedObjects                  method    -          a{oa{sa{sv}}}    -
.InterfacesAdded                    signal    oa{sa{sv}} -                -
.InterfacesRemoved                  signal    oas        -                -
org.freedesktop.DBus.Peer           interface -          -                -
.GetMachineId                       method    -          s                -
.Ping                               method    -          -                -
org.freedesktop.DBus.Properties     interface -          -                -
.Get                                method    ss         v                -
.GetAll                             method    s          a{sv}            -
.Set                                method    ssv        -                -
.PropertiesChanged                  signal    sa{sv}as   -                -
xyz.openbmc_project.Time.EpochTime  interface -          -                -
.Elapsed                            property  t          1617931946881395 emits-change writable

[-- Attachment #2: Type: text/html, Size: 13701 bytes --]

             reply	other threads:[~2021-09-28 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-28 10:52 Zhang, ShuoX [this message]
2021-09-28 19:27 ` Patrick Williams

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: BMC clock unable to sync time offset from RTC' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).