Commit e595eeb5ab88142b97798ed65e651de6560515e9

Edward Thomson 2018-08-27T01:06:37

ci: use more compatible strftime formats Windows lacks %F and %T formats for strftime. Expand them to the year/month/day and hour/minute/second formats, respectively.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/clar/summary.h b/tests/clar/summary.h
index 491f345..1af110e 100644
--- a/tests/clar/summary.h
+++ b/tests/clar/summary.h
@@ -26,7 +26,7 @@ int clar_summary_testsuite(struct clar_summary *summary,
 	struct tm *tm = localtime(&timestamp);
 	char iso_dt[20];
 
-	if (strftime(iso_dt, sizeof(iso_dt), "%FT%T", tm) == 0)
+	if (strftime(iso_dt, sizeof(iso_dt), "%Y-%m-%dT%H:%M:%S", tm) == 0)
 		return -1;
 
 	return fprintf(summary->fp, "\t<testsuite "