Remove redundant Unix timestamp method call

Unix() already uses UTC as timezone
This commit is contained in:
Unknwon committed 2016-07-23 20:24:44 +08:00
1 parent 4e822c1911
commit 250be011c7
13 files changed
+38 -38

No files matched your search

+2 -2
View File
@@ -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) {