Skip to content

Commit e595eeb

Browse files
committed
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 parent 6b2d8f0 commit e595eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/clar/summary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int clar_summary_testsuite(struct clar_summary *summary,
2626
struct tm *tm = localtime(&timestamp);
2727
char iso_dt[20];
2828

29-
if (strftime(iso_dt, sizeof(iso_dt), "%FT%T", tm) == 0)
29+
if (strftime(iso_dt, sizeof(iso_dt), "%Y-%m-%dT%H:%M:%S", tm) == 0)
3030
return -1;
3131

3232
return fprintf(summary->fp, "\t<testsuite "

0 commit comments

Comments
 (0)