Hi,

If I read "37. Timestamp Format" of IPMI spec v2.0 correctly,
timestamps returned by BMCs in response to commands like "Get SEL
Time" are always in server local time (as opposed to GMT).

However, when e.g. looking at ipmi_sel_get_time() in ipmitool 1.8.9, I
see that the conversion from BMC timestamp to printed time uses
localtime().  But localtime() converts from GMT to client local time,
which to me looks as if ipmitool expects the BMC timestamp in GMT
rather than local time.

Hence, my questions:
1. Is my reading of section 37 correct, i.e. "Get SEL Time" must
   return local time?
2. If yes, is it correct to use localtime() anyway?  If yes, why?

TIA for your comments.

Regards,
Jan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to