summaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-06 00:51:10 +0200
committerGitHub <noreply@github.com>2020-06-05 18:51:10 -0400
commitbbe13b60cdf93d8296f4c6dab624df2b571db234 (patch)
tree5a0423757a313943ef845d5d8c826ea3bc3e9736 /routers/api/v1
parentcc9d2deb6029c44caf3157799d6f61593cecac4d (diff)
downloadgitea-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/api/v1')
-rw-r--r--routers/api/v1/repo/issue.go2
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())
}