svn commit: r53753 - head/en_US.ISO8859-1/htdocs/cgi
Chris Rees <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
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 ([email protected]) 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"; _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-doc-all To unsubscribe, send any mail to "[email protected]"