* BMC clock unable to sync time offset from RTC
@ 2021-09-28 10:52 Zhang, ShuoX
2021-09-28 19:27 ` Patrick Williams
0 siblings, 1 reply; 2+ messages in thread
From: Zhang, ShuoX @ 2021-09-28 10:52 UTC (permalink / raw)
To: openbmc
[-- Attachment #1: Type: text/plain, Size: 2325 bytes --]
Hi,
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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BMC clock unable to sync time offset from RTC
2021-09-28 10:52 BMC clock unable to sync time offset from RTC Zhang, ShuoX
@ 2021-09-28 19:27 ` Patrick Williams
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Williams @ 2021-09-28 19:27 UTC (permalink / raw)
To: Zhang, ShuoX; +Cc: openbmc
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
On Tue, Sep 28, 2021 at 10:52:18AM +0000, Zhang, ShuoX wrote:
> Hi,
> I have a question and need your help. The time of bmc has always been UTC time.
This is by design. By default, we have the BMC always use UTC internally. Any
alternative timezones are exposed only at external interfaces (such as the
webui).
Some people statically configure the BMC to another timezone, but I don't know
how well this is tested. There is not currently any code to support dynamically
changing the timezone of the BMC.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-28 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 10:52 BMC clock unable to sync time offset from RTC Zhang, ShuoX
2021-09-28 19:27 ` Patrick Williams
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).