diff options
author | Unknwon <u@gogs.io> | 2015-08-05 20:37:14 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-05 20:37:14 +0800 |
commit | 77dcef0cab47acc16208ef1c795de53ce9ce49bd (patch) | |
tree | 21280b3509b595f7b5664ed8ab46af4f199292ca /routers | |
parent | 44c32a8a53c925c998ab1094271ecb1db26ad239 (diff) |
fix milestone format parse
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index d94c21ad..84046ef7 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1033,9 +1033,9 @@ func NewMilestonePost(ctx *middleware.Context, form auth.CreateMilestoneForm) { } if len(form.Deadline) == 0 { - form.Deadline = "12/31/9999" + form.Deadline = "9999-12-31" } - deadline, err := time.Parse("01/02/2006", form.Deadline) + deadline, err := time.Parse("2006-01-02", form.Deadline) if err != nil { ctx.Data["Err_Deadline"] = true ctx.RenderWithErr(ctx.Tr("repo.milestones.invalid_due_date_format"), MILESTONE_NEW, &form) |