diff options
author | Rodrigo Villablanca Vásquez <villa061004@gmail.com> | 2019-01-01 14:56:47 -0300 |
---|---|---|
committer | Jonas Franz <info@jonasfranz.software> | 2019-01-01 18:56:47 +0100 |
commit | 4c52858c39f848198a61b27a9a8fe70d12db3b44 (patch) | |
tree | 2f2987f9cdb43e2f6e6eed974647047f9c18f987 /routers/repo/milestone.go | |
parent | 63bd1b92037c5deb1bb13b0753855a689b9450bc (diff) | |
download | gitea-4c52858c39f848198a61b27a9a8fe70d12db3b44.tar.gz gitea-4c52858c39f848198a61b27a9a8fe70d12db3b44.zip |
Issue is not overdue when it is on the same date #5566 (#5568)
* Due date time of issues and milestones is set to 23:59:59
* Add docs
* make gen swagger
* fix swagger gen
Diffstat (limited to 'routers/repo/milestone.go')
-rw-r--r-- | routers/repo/milestone.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/milestone.go b/routers/repo/milestone.go index eb2141e995..6c3ad11f1f 100644 --- a/routers/repo/milestone.go +++ b/routers/repo/milestone.go @@ -113,6 +113,7 @@ func NewMilestonePost(ctx *context.Context, form auth.CreateMilestoneForm) { return } + deadline = time.Date(deadline.Year(), deadline.Month(), deadline.Day(), 23, 59, 59, 0, deadline.Location()) if err = models.NewMilestone(&models.Milestone{ RepoID: ctx.Repo.Repository.ID, Name: form.Title, @@ -175,6 +176,7 @@ func EditMilestonePost(ctx *context.Context, form auth.CreateMilestoneForm) { return } + deadline = time.Date(deadline.Year(), deadline.Month(), deadline.Day(), 23, 59, 59, 0, deadline.Location()) m, err := models.GetMilestoneByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) if err != nil { if models.IsErrMilestoneNotExist(err) { |