Skip to content

[API] commits api returns '0001-01-01T00:00:00Z' for created timestamp #17543

@DoLearnWhileAlive

Description

@DoLearnWhileAlive

Gitea Version

1.15.6

Git Version

No response

Operating System

No response

How are you running Gitea?

based on gitea-1.15.6-windows-4.0-amd64.exe as Windows Service

Database

No response

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

The commits api (api/v1/repos/*/*/git/commits) returns '0001-01-01T00:00:00Z' for several timestamps:

  • created
  • commit/tree/created
  • author/last_login
  • committer/last_login

Example: https://try.gitea.io/api/v1/repos/DoLearnWhileAlive/TestGiteaAppveyor/commits?sha=3f150d39b9

Having a valid timestamp for created is most important for me. It's required to fix broken AppVeyor support for Gitea pull requests, see appveyor/ci#3750.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions