diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-06-02 00:46:02 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-06-02 00:46:02 +0000 |
commit | 82050593e173985783bfe9aac00b403a6d3d9ec6 (patch) | |
tree | 877ba806d8a70e36baf003ed8130a38b2bbaaf4e /print_wiki.c | |
parent | ee08866b7e0cf6dbbae46409f38bc14343e1604f (diff) | |
download | flashrom-82050593e173985783bfe9aac00b403a6d3d9ec6.tar.gz |
print_wiki.c: there is only one way to represent time.
ISO 8601.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1817 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'print_wiki.c')
-rw-r--r-- | print_wiki.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/print_wiki.c b/print_wiki.c index 85663db..2936dbf 100644 --- a/print_wiki.c +++ b/print_wiki.c @@ -31,7 +31,7 @@ static const char wiki_header[] = "= Supported devices =\n\n\ <div style=\"margin-top:0.5em; padding:0.5em 0.5em 0.5em 0.5em; \ background-color:#eeeeee; text-align:left; border:1px solid #aabbcc;\">\ <small>\n\ -'''Last update:''' %s(generated by flashrom %s)<br />\n\ +'''Last update:''' %s (generated by flashrom %s)<br />\n\ The tables below are generated from flashrom's source by copying the output of '''flashrom -z'''.<br /><br />\n\ A short explanation of the cells representing the support state follows:<br />\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); |