mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-10 02:34:04 +09:00
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
This commit is contained in:
@ -35,7 +35,7 @@ type Notice struct {
|
||||
}
|
||||
|
||||
func (n *Notice) BeforeInsert() {
|
||||
n.CreatedUnix = time.Now().UTC().Unix()
|
||||
n.CreatedUnix = time.Now().Unix()
|
||||
}
|
||||
|
||||
func (n *Notice) AfterSet(colName string, _ xorm.Cell) {
|
||||
|
Reference in New Issue
Block a user