diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-06 00:51:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 18:51:10 -0400 |
commit | bbe13b60cdf93d8296f4c6dab624df2b571db234 (patch) | |
tree | 5a0423757a313943ef845d5d8c826ea3bc3e9736 /routers | |
parent | cc9d2deb6029c44caf3157799d6f61593cecac4d (diff) | |
download | gitea-bbe13b60cdf93d8296f4c6dab624df2b571db234.tar.gz gitea-bbe13b60cdf93d8296f4c6dab624df2b571db234.zip |
Fix timezone on issue deadline (#11697)
* Fix timezone on issue deadline
* FormatDate
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index d51e80e18c..062ecc74d0 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -691,7 +691,7 @@ func UpdateIssueDeadline(ctx *context.APIContext, form api.EditDeadlineOption) { var deadline time.Time if form.Deadline != nil && !form.Deadline.IsZero() { deadline = time.Date(form.Deadline.Year(), form.Deadline.Month(), form.Deadline.Day(), - 23, 59, 59, 0, form.Deadline.Location()) + 23, 59, 59, 0, time.Local) deadlineUnix = timeutil.TimeStamp(deadline.Unix()) } |