summaryrefslogtreecommitdiffstats
path: root/models/release.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-11 17:12:37 -0500
committerUnknwon <u@gogs.io>2016-03-11 17:12:37 -0500
commitf76d821bdacf4449113547f3cc3301349516cd34 (patch)
tree6788fe9179e815b6c0e3382463d1087b0463108f /models/release.go
parent263304b6b778a3c9e55128da050df8e31e291fab (diff)
downloadgitea-f76d821bdacf4449113547f3cc3301349516cd34.tar.gz
gitea-f76d821bdacf4449113547f3cc3301349516cd34.zip
fix #2804
Diffstat (limited to 'models/release.go')
-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) {