summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/timeutil/timestamp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/timeutil/timestamp.go b/modules/timeutil/timestamp.go
index 40fcb8603f..36b2aff575 100644
--- a/modules/timeutil/timestamp.go
+++ b/modules/timeutil/timestamp.go
@@ -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
}