summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/release.go b/models/release.go
index 2379bdc628..69ce6c139d 100644
--- a/models/release.go
+++ b/models/release.go
@@ -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) {