See “real” commit date in github (hour/day)

Is there a way to see the date of a commit in github, with day/hour precision? Older commits appear in a “human readable” format, such as “2 years ago” instead of showing the actual date.

old github commit

If it’s not possible to see the actual date on github, is there a easier workaround than git clone?

  • How do I rebase while skipping a particular commit?
  • Reverting an interactive git rebase
  • What does “Auto packing the repository for optimum performance” mean?
  • Why does git show a conflict between two apparently identical added files?
  • On conflict, GitHub for Windows puts me in “rebasing” state, how to go from there?
  • What exactly does git's “rebase --preserve-merges” do (and why?)
  • 3 responses to “See “real” commit date in github (hour/day)”

      Philipp Grulich said:

      Hover over the 2 years ago and you’ll get the timestamp.

      Philipp Grulich said:

      The real date does not appear for me upon hovering “2 years ago”, despite the text being wrapped by a <time> element with an iso value under its datetime attribute.

      If all else fails, like it did for me, try inspecting the text.

      Sample element:

      <time datetime="2015-01-22T20:48:13Z" is="relative-time" title="Jan 22, 2015, 2:48 PM CST">7 days ago</time>

      Matt S. said:

      you can just use this js bookmark:

      javascript:(function() { 
              var relativeTimeElements = window.document.querySelectorAll("relative time");
              relativeTimeElements.forEach(function(timeElement){
              timeElement.innerHTML = timeElement.innerHTML +" -- "+ timeElement.title;
              })
          }()
      )
      

      https://gist.github.com/PhilippGrulich/7051832b344d4cbd30fbfd68524baa38

      It adds just the correct time:
      Like this:
      committed 21 hours ago — 15. Feb. 2017, 15:49 MEZ

    Git Baby is a git and github fan, let's start git clone.