Closed
Description
- Gitea version (or commit ref): 8006b1b
- Git version:
- Operating system: Windows 2012 R2 (English, Timezone Germany/Berlin)
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
Description
I set a issue due date, and it shows the date in views one day plus.
- In the database I see the correct timestamp, 1549411199 -> 2019-02-05T23:59:59.
- If I open the editor, there is also the correct stamp -> correct.
- In issue overview, history and the issue it self I see the date always one day plus -> wrong.
- Over due calculation -> correct.
Screenshots
Code
I would fix it, but I have no glue, what is indented. So, I give the lines they are responsible.
Save
gitea/routers/api/v1/repo/issue.go
Lines 293 to 296 in 8917d66
gitea/routers/api/v1/repo/issue.go
Lines 413 to 419 in 8917d66
Get
Line 384 in 8917d66
AsTimePtr
add's the local timezone, if i understand it correct.