Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jan 2020 16:10:21 +0800
From:      "=?utf-8?B?6LCi6Ie06YKmIChYSUUgWmhpYmFuZyk=?=" <yeking@red54.com>
To:        "=?utf-8?B?ZnJlZWJzZC1oYWNrZXJz?=" <freebsd-hackers@freebsd.org>, "=?utf-8?B?ZnJlZWJzZC1jdXJyZW50?=" <freebsd-current@freebsd.org>, "=?utf-8?B?ZnJlZWJzZC1kb2M=?=" <freebsd-doc@freebsd.org>, "=?utf-8?B?Y3JlZXM=?=" <crees@freebsd.org>, "=?utf-8?B?d29zY2g=?=" <wosch@freebsd.org>
Subject:   [PATCH] Fix "Last database update: 2020-12-30 15:16:53 UTC" problem
Message-ID:  <tencent_FBE8CF526003ED63CF8975CD1FD4F37E3B06@qq.com>

next in thread | raw e-mail | index | archive | help

Forward to crees and wosch.

https://web.archive.org/web/20191230210421/https://www.freebsd.org/cgi/ports.cgi?query=freebsd-doc-all
https://web.archive.org/web/20191231054123/https://www.freebsd.org/cgi/ports.cgi?query=freebsd-doc-all

Index: doc/head/en_US.ISO8859-1/htdocs/cgi/ports.cgi
===================================================================
--- doc/head/en_US.ISO8859-1/htdocs/cgi/ports.cgi	(revision 53721)
+++ doc/head/en_US.ISO8859-1/htdocs/cgi/ports.cgi	(working copy)
@@ -166,7 +166,7 @@
 
     $modtime = ( stat($file) )[9];
     if ( defined($modtime) && $modtime > 0 ) {
-        $modtimestr = strftime( "%G-%m-%d %H:%M:%S UTC", gmtime($modtime) );
+        $modtimestr = strftime( "%Y-%m-%d %H:%M:%S UTC", gmtime($modtime) );
     }
     else {
         $modtimestr = "Unknown";

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tencent_FBE8CF526003ED63CF8975CD1FD4F37E3B06>