mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-23 23:31:33 +01:00
show empty if time is 0
Signed-off-by: Ziming Zhang <zziming@vmware.com> Change-Id: I5acc13714dbb1dc1d8bf3f1c6c620a7d54f86910
This commit is contained in:
parent
9a4627c583
commit
57a34a7d8d
@ -197,6 +197,9 @@ func arn(art *res.Candidate) string {
|
||||
}
|
||||
|
||||
func t(tm int64) string {
|
||||
if tm == 0 {
|
||||
return ""
|
||||
}
|
||||
return time.Unix(tm, 0).Format("2006/01/02 15:04:05")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user