Explorar o código

print: out-of-date format

Consistently use the same date format for all dates.
Simon Legner %!s(int64=5) %!d(string=hai) anos
pai
achega
d25f2939eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      print.go

+ 1 - 1
print.go

@@ -308,7 +308,7 @@ func PrintInfo(a *rpc.Pkg) {
 	printInfoValue("Last Modified", formatTimeQuery(a.LastModified))
 
 	if a.OutOfDate != 0 {
-		printInfoValue("Out-of-date", "Yes ["+formatTime(a.OutOfDate)+"]")
+		printInfoValue("Out-of-date", formatTimeQuery(a.OutOfDate))
 	} else {
 		printInfoValue("Out-of-date", "No")
 	}