GitHub commit dates are off

Over the last several days my Github commits from Xcode are on a day lag. If I commit today, my Github profile shows it was committed yesterday. I also checked the git log with terminal using command “git log --pretty=fuller” and saw that AuthorDate is the same as CommitDate, so wondering if this is a GitHub specific issue.

1 Like

Hi @mhossain495

I haven’t been able to successfully reproduce this.

  • Cloned my repository using Xcode.

  • Edited the main branch and created a commit.

  • Pushed that commit.
    All done in Xcode.

  • Checked my repository on GitHub for the latest commit.
    Adding .patch to the end of the commit to get more info.
    The commits match my local environment.

e.g. https://github.com/octocat/octocat.github.io/commit/67c0afc1da354d8571f51b6f0af8f2794117fd10.patch:

From 67c0afc1da354d8571f51b6f0af8f2794117fd10 Mon Sep 17 00:00:00 2001
From: The Octocat <octocat@nowhere.com>
Date: Sun, 27 Apr 2014 15:36:39 +0530
Subject: [PATCH] updated index for better welcome message

Thanks so much for looking into this. I decided to work on another project, committed and pushed with Xcode and I think that may have fixed my github commit history. That or maybe github contribution history corrected itself. I will go back to the project where this issue started to occur and check whether the commit goes through to the github site for the correct day. That is if I push code for Dec 22, the github site will show a contribution for Dec 22.

@ernest-phillips Just pushed a commit and GitHub commit date matches actual commit date. Very strange, might have been a temporary issue with either my commits or GitHub. Thanks again for looking into this.

1 Like