mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 10:18:01 +01:00
Backport of #21593 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
43a8547df6
commit
b0a057f1c0
@ -103,5 +103,5 @@ func (ts TimeStamp) FormatDate() string {
|
||||
|
||||
// IsZero is zero time
|
||||
func (ts TimeStamp) IsZero() bool {
|
||||
return ts.AsTimeInLocation(time.Local).IsZero()
|
||||
return int64(ts) == 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user