diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-08-27 01:06:37 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-09-06 11:18:59 +0100 |
commit | e595eeb5ab88142b97798ed65e651de6560515e9 (patch) | |
tree | bb20b51c6f9cb5ec94c0e92dd95ed250947e174f | |
parent | 6b2d8f09bc9e5bdf74f98b7470ebc39436be600f (diff) | |
download | libgit2-e595eeb5ab88142b97798ed65e651de6560515e9.tar.gz |
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.
-rw-r--r-- | tests/clar/summary.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clar/summary.h b/tests/clar/summary.h index 491f3451e..1af110efa 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(×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 " |