diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-06 14:44:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 13:44:16 +0100 |
commit | 287e2c781b5966befdf6d7c6db80bae648fe3199 (patch) | |
tree | d6d97719d08a1688b230c36e96b2db5839eede6e /routers/api/v1/repo/issue.go | |
parent | 921a5c0b625a2dc19fa6bfc5ddc29f7e6a13943c (diff) | |
download | gitea-287e2c781b5966befdf6d7c6db80bae648fe3199.tar.gz gitea-287e2c781b5966befdf6d7c6db80bae648fe3199.zip |
Fix timezone on issue deadline (#11697) (#11784)
* Fix timezone on issue deadline
* FormatDate
Co-authored-by: zeripath <art27@cantab.net>
(cherry picked from commit bbe13b60cdf93d8296f4c6dab624df2b571db234)
Diffstat (limited to 'routers/api/v1/repo/issue.go')
-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()) } |