Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Wrong creation date being fetched for github repo using repos.get(owner, repo): Get a repository

Open
#108 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
github, python
Domain
api, backend

Research direction

Start with the repos.get call shown in the issue and compare its created_at value with GitHub's repository metadata documentation and the endpoint response. Determine whether ghapi is transforming the field or exposing GitHub's value as-is; done means the distinction between repository creation and initial commit dates is verified and the issue is answered or documented.

Written by the indexing model from the issue text.

Description

Hi All,

I wanted to get the date on which a github repository is created. However the date which I am getting is not corrrect, for example the repo https://github.com/pandas-dev/pandas/, the intial commit date is 31 Jul 2009, however it is shown as 2010-08-24 by the api.

Following is the code that I have used.

from ghapi.all import GhApi
from configparser import ConfigParser

config_parser = ConfigParser()
config_parser.read("config.ini")
access_token = config_parser["public"].get("access_token")

gh = GhApi(owner="pandas-dev", repo="pandas", token=access_token)

y = gh.repos.get(owner="pandas-dev", repo="pandas")

print(f"Creation date = {y['created_at']}")

The output is:

Creation date = 2010-08-24T01:37:33Z


This creation date is not correct, please let me know how to fetch the correct creation date of the Github repo or date of the intial commit.

Thanks

Dominant language
Python
Stars
687
Forks
69
Avg merge
1m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AnswerDotAI/ghapi

All issues in AnswerDotAI/ghapi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.