Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DoLearnWhileAlive opened this issue Nov 4, 2021 · 0 comments · Fixed by #17546
Closed

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

DoLearnWhileAlive opened this issue Nov 4, 2021 · 0 comments · Fixed by #17546
Labels
modifies/api This PR adds API routes or modifies them type/bug
Milestone

Comments

@DoLearnWhileAlive
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants