mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 14:47:38 +01:00
fix(retention) fix empty pull time log
Signed-off-by: Ziming Zhang <zziming@vmware.com>
This commit is contained in:
parent
f2d5f4e256
commit
257924856c
@ -213,7 +213,7 @@ func arn(art *selector.Candidate) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func t(tm int64) string {
|
func t(tm int64) string {
|
||||||
if tm == 0 {
|
if tm <= 0 {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return time.Unix(tm, 0).Format("2006/01/02 15:04:05")
|
return time.Unix(tm, 0).Format("2006/01/02 15:04:05")
|
||||||
|
Loading…
Reference in New Issue
Block a user