[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] [bug #38798] timestamps are interpretted as UTC rather
From: |
Rob Swindell |
Subject: |
[Freeipmi-devel] [bug #38798] timestamps are interpretted as UTC rather than localtime, violating IPMI 2.0 section 37 |
Date: |
Thu, 25 Apr 2013 22:42:58 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 |
Follow-up Comment #1, bug #38798 (project freeipmi):
Here's a patch for one instance of this problem. Like I suggested for bug
#38799, a generic "IPMI timestamp" function should be created and used
everywhere so as to resolve these issues globally:
===================================================================
--- bmc-device.c (revision 9608)
+++ bmc-device.c (working copy)
@@ -1281,7 +1281,7 @@
memset (&tm, ' ', sizeof(struct tm));
t = val;
- localtime_r (&t, &tm);
+ gmtime_r (&t, &tm);
strftime (timestr, sizeof (timestr), "%m/%d/%Y - %H:%M:%S", &tm);
pstdout_printf (state_data->pstate,
"SEL Time : %sn",
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38798>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/