From 250be011c769decc729ec7dcc318b24e0613e73d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 23 Jul 2016 20:24:44 +0800 Subject: Remove redundant Unix timestamp method call Unix() already uses UTC as timezone --- models/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/pull.go') diff --git a/models/pull.go b/models/pull.go index 6380bbbd..38fd9457 100644 --- a/models/pull.go +++ b/models/pull.go @@ -65,7 +65,7 @@ type PullRequest struct { } func (pr *PullRequest) BeforeUpdate() { - pr.MergedUnix = pr.Merged.UTC().Unix() + pr.MergedUnix = pr.Merged.Unix() } // Note: don't try to get Pull because will end up recursive querying. -- cgit v1.2.3