mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-31 23:33:08 +08:00
fix #2804
This commit is contained in:
@ -39,7 +39,7 @@ type Release struct {
|
||||
}
|
||||
|
||||
func (r *Release) BeforeInsert() {
|
||||
r.CreatedUnix = r.Created.UTC().Unix()
|
||||
r.CreatedUnix = time.Now().UTC().Unix()
|
||||
}
|
||||
|
||||
func (r *Release) AfterSet(colName string, _ xorm.Cell) {
|
||||
|
Reference in New Issue
Block a user