mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-24 17:25:19 +08:00
fix gpg expired bug when time is zero (#3584)
This commit is contained in:
@ -59,3 +59,8 @@ func (ts TimeStamp) FormatLong() string {
|
||||
func (ts TimeStamp) FormatShort() string {
|
||||
return ts.Format("Jan 02, 2006")
|
||||
}
|
||||
|
||||
// IsZero is zero time
|
||||
func (ts TimeStamp) IsZero() bool {
|
||||
return ts.AsTime().IsZero()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user