aboutsummaryrefslogtreecommitdiffstats
path: root/models/admin.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-23 20:24:44 +0800
committerUnknwon <u@gogs.io>2016-07-23 20:24:44 +0800
commit250be011c769decc729ec7dcc318b24e0613e73d (patch)
treea9fa643a58e68d42a43ba67a61e6145a52adb1ec /models/admin.go
parent4e822c1911755a94fef22435d191b6ca57c6f467 (diff)
downloadgitea-250be011c769decc729ec7dcc318b24e0613e73d.tar.gz
gitea-250be011c769decc729ec7dcc318b24e0613e73d.zip
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
Diffstat (limited to 'models/admin.go')
-rw-r--r--models/admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/admin.go b/models/admin.go
index c2db03dafe..68731a2433 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -35,7 +35,7 @@ type Notice struct {
}
func (n *Notice) BeforeInsert() {
- n.CreatedUnix = time.Now().UTC().Unix()
+ n.CreatedUnix = time.Now().Unix()
}
func (n *Notice) AfterSet(colName string, _ xorm.Cell) {