svn commit: r53753 - head/en_US.ISO8859-1/htdocs/cgi
Chris Rees
crees at FreeBSD.org
Fri Jan 3 17:59:20 UTC 2020
Author: crees
Date: Fri Jan 3 17:59:19 2020
New Revision: 53753
URL: https://svnweb.freebsd.org/changeset/doc/53753
Log:
Use the correct format string for ISO date.
%G is for the week-based year, which means that in the final few days
of the year, it advances, giving rise to the phenomenon where a couple
of days ago, the date reported was 2020-12-30 (366 days in the future)!
Submitted by: XIE Zhibang (yeking at red54.com)
Modified:
head/en_US.ISO8859-1/htdocs/cgi/ports.cgi
Modified: head/en_US.ISO8859-1/htdocs/cgi/ports.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/ports.cgi Fri Jan 3 17:16:41 2020 (r53752)
+++ head/en_US.ISO8859-1/htdocs/cgi/ports.cgi Fri Jan 3 17:59:19 2020 (r53753)
@@ -166,7 +166,7 @@ sub last_update {
$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";
More information about the svn-doc-all
mailing list