From 2a10e70cd3b3e974c173b035dae01bf53899c228 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Mon, 2 Jun 2014 00:46:02 +0000 Subject: print_wiki.c: there is only one way to represent time ISO 8601. Corresponding to flashrom svn r1817. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- print_wiki.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'print_wiki.c') diff --git a/print_wiki.c b/print_wiki.c index 85663dbbd..2936dbf86 100644 --- a/print_wiki.c +++ b/print_wiki.c @@ -31,7 +31,7 @@ static const char wiki_header[] = "= Supported devices =\n\n\
\ \n\ -'''Last update:''' %s(generated by flashrom %s)
\n\ +'''Last update:''' %s (generated by flashrom %s)
\n\ The tables below are generated from flashrom's source by copying the output of '''flashrom -z'''.

\n\ A short explanation of the cells representing the support state follows:
\n\ {| border=\"0\" valign=\"top\"\n\ @@ -443,8 +443,10 @@ static void print_supported_devs_wiki() void print_supported_wiki(void) { 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); #if CONFIG_INTERNAL == 1 print_supported_chipsets_wiki(3); -- cgit v1.2.3