API: RFC 3339 time format as specified by Swagger not accepted #6302

Closed
opened 2025-11-02 06:51:36 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @DuckDuckWhale on GitHub (Nov 12, 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

When making a request using the API to /user/times and parameter since using RFC 3339 with space instead of T, the API returns an empty message, but when using T it works fine. Lower case t also as permitted by the RFC doesn't work either.

Originally created by @DuckDuckWhale on GitHub (Nov 12, 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 When making a request using the API to `/user/times` and parameter `since` using RFC 3339 with space instead of `T`, the API returns an empty message, but when using `T` it works fine. Lower case `t` also as permitted by the RFC doesn't work either.
GiteaMirror added the reviewed/wontfix label 2025-11-02 06:51:36 -06:00
Author
Owner

@lafriks commented on GitHub (Nov 14, 2020):

RFC 3339 specifies that T should be used. It states that space or lowercase MAY be accepted but that in now way means it should be accepted to be compatible with spec.

@lafriks commented on GitHub (Nov 14, 2020): RFC 3339 specifies that `T` should be used. It states that space or lowercase MAY be accepted but that in now way means it should be accepted to be compatible with spec.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6302