diff options
author | Jason Duan <jasduaner@gmail.com> | 2020-04-30 21:10:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 14:10:42 +0100 |
commit | 4468b0b2b21a4645d2c82c9819817b37aab5eaff (patch) | |
tree | d5c9d43a030a3af85d046240e502612db3d8282c /services/release | |
parent | d0e7361bd9d2852d71b3af117afd5216858d1eef (diff) | |
download | gitea-4468b0b2b21a4645d2c82c9819817b37aab5eaff.tar.gz gitea-4468b0b2b21a4645d2c82c9819817b37aab5eaff.zip |
When using API CreateRelease set created_unix to the tag commit time (#11218)
Diffstat (limited to 'services/release')
-rw-r--r-- | services/release/release.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/release/release.go b/services/release/release.go index cc3b98afac..3105ce24ae 100644 --- a/services/release/release.go +++ b/services/release/release.go @@ -53,7 +53,7 @@ func createTag(gitRepo *git.Repository, rel *models.Release) error { } rel.Sha1 = commit.ID.String() - rel.CreatedUnix = timeutil.TimeStamp(commit.Author.When.Unix()) + rel.CreatedUnix = timeutil.TimeStampNow() rel.NumCommits, err = commit.CommitsCount() if err != nil { return fmt.Errorf("CommitsCount: %v", err) |