From aab226da28936d8871c5543f1e2da6d815f7a52b Mon Sep 17 00:00:00 2001 From: Jim Mankovich Date: Wed, 30 May 2012 21:35:17 +0000 Subject: [PATCH] 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 --- ipmitool/include/ipmitool/ipmi_fru.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/include/ipmitool/ipmi_fru.h b/ipmitool/include/ipmitool/ipmi_fru.h index 11ed9d9..b69e278 100644 --- a/ipmitool/include/ipmitool/ipmi_fru.h +++ b/ipmitool/include/ipmitool/ipmi_fru.h @@ -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",