Fix `Timestamp.IsZero` () ()

Backport of 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
pull/21592/head^2
KN4CK3R committed by GitHub
parent 43a8547df6
commit b0a057f1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save