commit | 9084f520bacf3683a3185fad7dc536b6a3c903d0 | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Thu Nov 03 08:17:54 2022 +0000 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Jul 18 21:44:56 2023 +0000 |
tree | 3abbe8465dbc98dd496b93b96f367007dd4e4e07 | |
parent | cfa96afa9a830d0fe9bd96816f8e91add8fd66e5 [diff] |
fru-parser: Remove the use of mktime mktime get the time in localtime and will mess up the time if the timezone != UTC. The FRU data should be the raw data in UTC and the reader will convert to localtime at their end. This issue is detected when we change the timezone to PST/PDT with https://gerrit.openbmc.org/c/openbmc/openbmc/+/58293 and the FRU EEPROM time does not match the expected Mfg Date anymore. Used the timestamp of 1/1/1996 UTC directly. Data Reader: https://gerrit.openbmc.org/c/openbmc/phosphor-host-ipmid/+/58466 Tested: Fru EEPROM Mfg Time now is in the same (after timezone conversion) between the raw data and FRU output. Change-Id: I9d2d045f037d1976e45ed4e0c1857bb8d5ebc06d Signed-off-by: Willy Tu <wltu@google.com>