mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
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.
This commit is contained in:
@@ -26,7 +26,7 @@ int clar_summary_testsuite(struct clar_summary *summary,
|
||||
struct tm *tm = localtime(×tamp);
|
||||
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 "
|
||||
|
||||
Reference in New Issue
Block a user