From c268633946dfd4cb1993e5ef2e4f220c5207a596 Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Fri, 3 Jan 2020 17:59:19 +0000 Subject: [PATCH] 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) --- en_US.ISO8859-1/htdocs/cgi/ports.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en_US.ISO8859-1/htdocs/cgi/ports.cgi b/en_US.ISO8859-1/htdocs/cgi/ports.cgi index f805317ba7..a927f2f46b 100755 --- a/en_US.ISO8859-1/htdocs/cgi/ports.cgi +++ b/en_US.ISO8859-1/htdocs/cgi/ports.cgi @@ -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";