<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> 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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> The following steps:<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:12.0pt">
</span><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif">1. From SUT Linux OS<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"> # timedatectl set-timezone Asia/Shanghai<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"> # hwclock -w<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"> # hwclock -r<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"> 2021-08-12 23:47:04.936372+<span style="color:black;background:yellow">08:00</span><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"> 2. Reboot BMC, the BMC will sync the clock with RTC<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"> 3. HTTP GET /redfish/v1/Managers/bmc, check DateTime field, “DateTime” = “2021-08-12 15:47:04.936372+<span style="color:black;background:yellow">00:00</span>”<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"> 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?<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">root@intel-obmc:~# busctl introspect xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">NAME TYPE SIGNATURE RESULT/VALUE FLAGS<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">org.freedesktop.DBus.Introspectable</span></b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif"> interface - -
-<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.Introspect method - s -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">org.freedesktop.DBus.ObjectManager
</span></b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif"> interface - - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.GetManagedObjects method - a{oa{sa{sv}}} -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.InterfacesAdded signal oa{sa{sv}} - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.InterfacesRemoved signal oas - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">org.freedesktop.DBus.Peer
</span></b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif"> interface - - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.GetMachineId method - s -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.Ping method - - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">org.freedesktop.DBus.Properties
</span></b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif"> interface - - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.Get method ss v -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.GetAll method s a{sv} -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.Set method ssv - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.PropertiesChanged signal sa{sv}as - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">xyz.openbmc_project.Time.EpochTime
</span></b><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif"> interface - - -<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">.Elapsed property t
<span style="background:yellow;mso-highlight:yellow">1617931946881395</span> emits-change writable<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:9.5pt;font-family:"Trebuchet MS",sans-serif">
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</body>
</html>