summaryrefslogtreecommitdiffstats
path: root/models/login.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/login.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/login.go')
-rw-r--r--models/login.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/login.go b/models/login.go
index dd90c5d86e..84a5c21916 100644
--- a/models/login.go
+++ b/models/login.go
@@ -120,12 +120,12 @@ type LoginSource struct {
}
func (s *LoginSource) BeforeInsert() {
- s.CreatedUnix = time.Now().UTC().Unix()
+ s.CreatedUnix = time.Now().Unix()
s.UpdatedUnix = s.CreatedUnix
}
func (s *LoginSource) BeforeUpdate() {
- s.UpdatedUnix = time.Now().UTC().Unix()
+ s.UpdatedUnix = time.Now().Unix()
}
// Cell2Int64 converts a xorm.Cell type to int64,