[Openvas-commits] r12039 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 8 13:24:33 CET 2011


Author: mattm
Date: 2011-11-08 13:24:31 +0100 (Tue, 08 Nov 2011)
New Revision: 12039

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/manage.c
Log:
	* src/manage.c (manage_scap_update_time): Format time like SCAP times.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2011-11-08 10:52:36 UTC (rev 12038)
+++ trunk/openvas-manager/ChangeLog	2011-11-08 12:24:31 UTC (rev 12039)
@@ -1,6 +1,10 @@
 2011-11-08  Matthew Mundell <matthew.mundell at greenbone.net>
 
-	* src/omp.c (SCAP_TIMESTAMP_FILENAME): New define.
+	* src/manage.c (manage_scap_update_time): Format time like SCAP times.
+
+2011-11-08  Matthew Mundell <matthew.mundell at greenbone.net>
+
+	* src/manage.c (SCAP_TIMESTAMP_FILENAME): New define.
 	(manage_scap_update_time): New function.
 	(manage_read_info): Send SCAP update time with CVE and CPE.
 

Modified: trunk/openvas-manager/src/manage.c
===================================================================
--- trunk/openvas-manager/src/manage.c	2011-11-08 10:52:36 UTC (rev 12038)
+++ trunk/openvas-manager/src/manage.c	2011-11-08 12:24:31 UTC (rev 12039)
@@ -4220,7 +4220,11 @@
 
   memset (&update_time, 0, sizeof (struct tm));
   if (strptime (content, "%Y%m%d%H%M", &update_time))
-    return asctime (&update_time);
+    {
+      static char time_string[100];
+      strftime (time_string, 99, "%FT%T.000%z", &update_time);
+      return time_string;
+    }
   return "";
 }
 



More information about the Openvas-commits mailing list