API: RFC 3339 time format weirdness #6314

Closed
opened 2025-11-02 06:52:20 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @DuckDuckWhale on GitHub (Nov 15, 2020).

  • Gitea version (or commit ref): 1.12.5
  • Git version: N/A
  • Operating system: Ubuntu Server 20.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Haven't tried
  • Log gist: N/A

Description

I was making a request using the API to /user/times and parameter since using RFC 3339. When I use 2002-10-02T10:00:00-00:00 and 2002-10-02T10:00:00Z it works fine, but when I use 2002-10-02T10:00:00+00:00 (with a plus) the API returns an empty message with a error code of 500.

Originally created by @DuckDuckWhale on GitHub (Nov 15, 2020). - Gitea version (or commit ref): 1.12.5 - Git version: N/A - Operating system: Ubuntu Server 20.04 - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Haven't tried - Log gist: N/A ## Description I was making a request using the API to `/user/times` and parameter `since` using RFC 3339. When I use `2002-10-02T10:00:00-00:00` and `2002-10-02T10:00:00Z` it works fine, but when I use `2002-10-02T10:00:00+00:00` (with a plus) the API returns an empty message with a error code of 500.
Author
Owner

@6543 commented on GitHub (Nov 15, 2020):

its a bug and its fixed

@6543 commented on GitHub (Nov 15, 2020): its a bug and its fixed
Author
Owner

@6543 commented on GitHub (Nov 15, 2020):

Backport #13560 will fix it for 1.12.6 too

@6543 commented on GitHub (Nov 15, 2020): Backport #13560 will fix it for 1.12.6 too
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6314