1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 15:12:36 +02:00

print_wiki.c: there is only one way to represent time

ISO 8601.

Corresponding to flashrom svn r1817.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Stefan Tauner 2014-06-02 00:46:02 +00:00
parent 05aa0f4014
commit 2a10e70cd3

View File

@ -443,8 +443,10 @@ static void print_supported_devs_wiki()
void print_supported_wiki(void) void print_supported_wiki(void)
{ {
time_t t = time(NULL); time_t t = time(NULL);
char buf[sizeof("1986-02-28T12:37:42Z")];
strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%SZ", gmtime(&t));
printf(wiki_header, ctime(&t), flashrom_version); printf(wiki_header, buf, flashrom_version);
print_supported_chips_wiki(2); print_supported_chips_wiki(2);
#if CONFIG_INTERNAL == 1 #if CONFIG_INTERNAL == 1
print_supported_chipsets_wiki(3); print_supported_chipsets_wiki(3);