diff options
author | Andres Oportus <andresoportus@google.com> | 2018-04-09 10:35:21 -0700 |
---|---|---|
committer | Emily Shaffer <emilyshaffer@google.com> | 2018-04-17 22:32:17 +0000 |
commit | 7ebd246403417294fc6fa1914967b6e60a92f062 (patch) | |
tree | b3963d8a8b0022428de920ece9162554d54f2e79 /softoff/test/utest.cpp | |
parent | 7cbe22866c633d8e5b427503e1b1a363f45641a3 (diff) | |
download | phosphor-host-ipmid-7ebd246403417294fc6fa1914967b6e60a92f062.tar.gz phosphor-host-ipmid-7ebd246403417294fc6fa1914967b6e60a92f062.zip |
Fix FRU BuildDate DBus/IPMI exporting
When BMC exports the date into DBUS it translates/expands the 3 bytes FRU
format date into an easy to read string as in "2015-11-06 - 22:23:00", when
exporting the DBUS date back to IPMI it needs to translate back this date
into the 3 bytes FRU format, without this fix we get a build date in 1996
that is the epoch for the FRU date format. This change reconstructs the
FRU date from the easy to read string for exporting into IPMI.
Tested: Manual check that BuildDate from busctl and ipmitool match
Resolves openbmc/openbmc#3013
Change-Id: I0fd1dd8f945f18b53c14bff321c9e233fdb2d742
Signed-off-by: Andres Oportus <andresoportus@google.com>
Diffstat (limited to 'softoff/test/utest.cpp')
0 files changed, 0 insertions, 0 deletions