Skip to content

fix(api): use ParseAPIDeadlineToEndOfDay for CreateIssue deadline - #38677

Open
okxint wants to merge 2 commits into
go-gitea:mainfrom
okxint:fix/create-issue-deadline-end-of-day
Open

fix(api): use ParseAPIDeadlineToEndOfDay for CreateIssue deadline#38677
okxint wants to merge 2 commits into
go-gitea:mainfrom
okxint:fix/create-issue-deadline-end-of-day

Conversation

@okxint

@okxint okxint commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

CreateIssue stored the deadline directly from form.Deadline.Unix(), preserving whatever time-of-day the client sent. The EditIssue and CreatePullRequest endpoints both use common.ParseAPIDeadlineToEndOfDay, which normalizes the deadline to 23:59:59 in the server's configured timezone.

This inconsistency causes issues created via the API to appear as due "yesterday" in the UI when the client sends a date at midnight UTC and the server is in a positive-offset timezone.

One-line fix to use the existing helper consistently.

Closes #37620

okxint added 2 commits July 21, 2026 12:33
Safari treats inline <span> baseline differently from Chrome/Firefox,
causing ActionStatusIcon SVGs to appear vertically misaligned in the
action matrix build status list. Adding `display: inline-flex`,
`align-items: center`, and `vertical-align: middle` to the wrapper span
normalises alignment across browsers.

Fixes: go-gitea#38553

Assisted-by: claude-sonnet-4-6
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 28, 2026
@github-actions github-actions Bot added topic/api Concerns mainly the API type/bug labels Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. topic/api Concerns mainly the API type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Due Date off by a day

2 participants