Add date to commits

This commit is contained in:
Sacha Weatherstone
2022-02-20 00:44:32 +11:00
parent 41709131b1
commit 6e0aa0ea42
+10 -1
View File
@@ -18,7 +18,11 @@ export interface Commit {
node_id: string;
commit: {
author: string;
committer: string;
committer: {
date: string;
email: string;
mame: string;
};
message: string;
tree: {
sha: string;
@@ -92,6 +96,11 @@ export const VersionInfo = ({
: 'dark:bg-secondaryDark'
}`}
>
<div className="my-auto text-xs dark:text-gray-400">
{new Date(
commit.commit.committer.date,
).toLocaleDateString()}
</div>
<div className="my-auto font-mono text-sm">
{commit.sha.substring(0, 7)}
</div>