mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
When using the ipmitool fru command, one of the fields displayed is the
Board Mfg Date. This date is computed by taking the timestamp in the FRU, which is based off of 1/1/1996 0:0:0 and adding the delta time from 1/1/1970 0:0:0 to 1/1/1996 0:0:0 so that it can be interpreted by Linux time. This delta time is a hard-coded constant in ipmi_fru.h (secs_from_1970_1996). This constant is incorrect. The correct delta from those two dates should be 820454400. This is resulting in a Board Mfg Date that is actually 1 hour earlier than what it should be. commited for Renzo Hayashi
This commit is contained in:
parent
180aaaabbf
commit
aab226da28
@ -580,7 +580,7 @@ struct fru_picmgext_amc_link_desc_record {
|
||||
#endif
|
||||
|
||||
/* FRU Board manufacturing date */
|
||||
static const uint64_t secs_from_1970_1996 = 820450800;
|
||||
static const uint64_t secs_from_1970_1996 = 820454400;
|
||||
static const char * chassis_type_desc[] __attribute__((unused)) = {
|
||||
"Unspecified", "Other", "Unknown",
|
||||
"Desktop", "Low Profile Desktop", "Pizza Box",
|
||||
|
Loading…
x
Reference in New Issue
Block a user