diff options
author | Unknwon <u@gogs.io> | 2016-07-23 20:24:44 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-23 20:24:44 +0800 |
commit | 250be011c769decc729ec7dcc318b24e0613e73d (patch) | |
tree | a9fa643a58e68d42a43ba67a61e6145a52adb1ec /models/migrations/migrations.go | |
parent | 4e822c1911755a94fef22435d191b6ca57c6f467 (diff) | |
download | gitea-250be011c769decc729ec7dcc318b24e0613e73d.tar.gz gitea-250be011c769decc729ec7dcc318b24e0613e73d.zip |
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r-- | models/migrations/migrations.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 9f8388c37a..6a1fb2f6df 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -646,17 +646,17 @@ func convertDateToUnix(x *xorm.Engine) (err error) { if bean.Deadline.IsZero() { continue } - fieldSQL += com.ToStr(bean.Deadline.UTC().Unix()) + fieldSQL += com.ToStr(bean.Deadline.Unix()) case "created": - fieldSQL += com.ToStr(bean.Created.UTC().Unix()) + fieldSQL += com.ToStr(bean.Created.Unix()) case "updated": - fieldSQL += com.ToStr(bean.Updated.UTC().Unix()) + fieldSQL += com.ToStr(bean.Updated.Unix()) case "closed_date": - fieldSQL += com.ToStr(bean.ClosedDate.UTC().Unix()) + fieldSQL += com.ToStr(bean.ClosedDate.Unix()) case "merged": - fieldSQL += com.ToStr(bean.Merged.UTC().Unix()) + fieldSQL += com.ToStr(bean.Merged.Unix()) case "next_update": - fieldSQL += com.ToStr(bean.NextUpdate.UTC().Unix()) + fieldSQL += com.ToStr(bean.NextUpdate.Unix()) } valSQLs = append(valSQLs, fieldSQL) |