mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-02 14:32:33 +08:00
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
This commit is contained in:
@ -69,7 +69,7 @@ type Comment struct {
|
||||
}
|
||||
|
||||
func (c *Comment) BeforeInsert() {
|
||||
c.CreatedUnix = time.Now().UTC().Unix()
|
||||
c.CreatedUnix = time.Now().Unix()
|
||||
}
|
||||
|
||||
func (c *Comment) AfterSet(colName string, _ xorm.Cell) {
|
||||
|
Reference in New Issue
Block a user