aboutsummaryrefslogtreecommitdiffstats
path: root/models/ssh_key.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/ssh_key.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/ssh_key.go')
-rw-r--r--models/ssh_key.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go
index b302171553..a279b48711 100644
--- a/models/ssh_key.go
+++ b/models/ssh_key.go
@@ -62,11 +62,11 @@ type PublicKey struct {
}
func (k *PublicKey) BeforeInsert() {
- k.CreatedUnix = time.Now().UTC().Unix()
+ k.CreatedUnix = time.Now().Unix()
}
func (k *PublicKey) BeforeUpdate() {
- k.UpdatedUnix = time.Now().UTC().Unix()
+ k.UpdatedUnix = time.Now().Unix()
}
func (k *PublicKey) AfterSet(colName string, _ xorm.Cell) {
@@ -638,11 +638,11 @@ type DeployKey struct {
}
func (k *DeployKey) BeforeInsert() {
- k.CreatedUnix = time.Now().UTC().Unix()
+ k.CreatedUnix = time.Now().Unix()
}
func (k *DeployKey) BeforeUpdate() {
- k.UpdatedUnix = time.Now().UTC().Unix()
+ k.UpdatedUnix = time.Now().Unix()
}
func (k *DeployKey) AfterSet(colName string, _ xorm.Cell) {