fix #2804
This commit is contained in:
parent
263304b6b7
commit
f76d821bda
2 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue