1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-15 18:56:59 +00:00

Remove redundant Unix timestamp method call

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

View file

@ -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,