index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
/
token.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2016-07-23 20:24:44 +0800
committer
Unknwon <u@gogs.io>
2016-07-23 20:24:44 +0800
commit
250be011c769decc729ec7dcc318b24e0613e73d
(
patch
)
tree
a9fa643a58e68d42a43ba67a61e6145a52adb1ec
/
models/token.go
parent
4e822c1911755a94fef22435d191b6ca57c6f467
(
diff
)
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
Diffstat
(limited to 'models/token.go')
-rw-r--r--
models/token.go
4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/token.go b/models/token.go
index d015d97a..2c1f64ce 100644
--- a/
models/token.go
+++ b/
models/token.go
@@ -29,11 +29,11 @@ type AccessToken struct {
}
func (t *AccessToken) BeforeInsert() {
- t.CreatedUnix = time.Now().UTC().Unix()
+ t.CreatedUnix = time.Now().Unix()
}
func (t *AccessToken) BeforeUpdate() {
- t.UpdatedUnix = time.Now().UTC().Unix()
+ t.UpdatedUnix = time.Now().Unix()
}
func (t *AccessToken) AfterSet(colName string, _ xorm.Cell) {