Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2020 17:59:20 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r53753 - head/en_US.ISO8859-1/htdocs/cgi
Message-ID:  <202001031759.003HxKow012423@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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";



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