1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-12 04:28:21 +00:00

fix gpg expired bug when time is zero (#3584) (#3884)

This commit is contained in:
Lauris BH
2018-05-02 10:23:07 +03:00
committed by Bo-Yi Wu
parent 15cdb19d77
commit adbf576a6e
2 changed files with 6 additions and 1 deletions

View File

@@ -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()
}