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)
This commit is contained in:
Chris Rees 2020-01-03 17:59:19 +00:00
parent 71f3108869
commit c268633946
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=53753

View file

@ -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";