spdxtool: util: manually specify ISO8601 format string elements instead of %F and %Z

These do not work on the Microsoft C runtime library.

Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
Ariadne Conill 2025-12-20 23:40:53 -08:00
parent 0fc3ba9d95
commit 36ac187ad5

View File

@ -216,7 +216,7 @@ spdxtool_util_get_iso8601_time(time_t *wanted_time)
}
/* ISO8061 time with Z at the end */
strftime(buf, 21, "%FT%TZ", tm_info);
strftime(buf, 21, "%Y-%m-%dT%H:%M:%SZ", tm_info);
return buf;
}