diff options
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/action.go | |
parent | 4e822c1911755a94fef22435d191b6ca57c6f467 (diff) | |
download | gitea-250be011c769decc729ec7dcc318b24e0613e73d.tar.gz gitea-250be011c769decc729ec7dcc318b24e0613e73d.zip |
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index d39209c447..d4a07ced39 100644 --- a/models/action.go +++ b/models/action.go @@ -89,7 +89,7 @@ type Action struct { } func (a *Action) BeforeInsert() { - a.CreatedUnix = time.Now().UTC().Unix() + a.CreatedUnix = time.Now().Unix() } func (a *Action) AfterSet(colName string, _ xorm.Cell) { |