|
|
@ -28,10 +28,10 @@ export const CommitSummary = (props: CommitSummaryProps) => { |
|
|
|
return "today at " + dateFormat(timestamp * 1000, "HH:MM"); |
|
|
|
return "today at " + dateFormat(timestamp * 1000, "HH:MM"); |
|
|
|
} else |
|
|
|
} else |
|
|
|
|
|
|
|
|
|
|
|
if (diff < 1) { |
|
|
|
if (diff < 1) { |
|
|
|
// return how many hours ago
|
|
|
|
// return how many hours ago
|
|
|
|
return `${Math.floor(diff * 24)} hour(s) ago`; |
|
|
|
return `${Math.floor(diff * 24)} hour(s) ago`; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (diff < 7) { |
|
|
|
if (diff < 7) { |
|
|
|
// return how many days ago
|
|
|
|
// return how many days ago
|
|
|
|