In Git there are 2 types of dates, author-date
and commit-date
.
While git log
shows the author date
by default and similarly GitHub desktop appears to show the author-date
by default, however GitHub.com shows
the commit-date
by default.
However so far I was unable to find how to view the author-date
for the commit on the GitHub.com website, (while in this answer it is described how to view it in the GitHub API I didn't find anything on how to view it on the website itself).
Is there any way to view the author-date
either on the general commit log page or at the individual commit level?
Thanks.
CodePudding user response:
Since the author-date
is part of the patch format, you can get it from appending .patch
while viewing a commit on the GitHub website:
https://github.com/<owner>/<repo>/commit/<commit-sha>.patch
The Date
field in the output is what you are searching for:
From dc382172d6824a8f01d36904afefe8d5d3e9c0b7 Mon Sep 17 00:00:00 2001
From: [...] <[...]>
Date: Sun, 12 Mar 2022 11:50:32 0100
Subject: [PATCH] [...]
---
[...]