1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

output relative time

This commit is contained in:
Matthias Kretschmann 2020-10-22 17:51:25 +02:00
parent d75d172c0c
commit b0d9821535
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ export default function ComputeDetailsModal({
computeJob.did,
computeJob.jobId
)
if (job && job.length > 0) {
if (job?.length > 0) {
computeJob.algorithmLogUrl = job[0].algorithmLogUrl
// hack because ComputeJob returns resultsUrl instead of resultsUrls, issue created already
computeJob.resultsUrls =
@ -58,11 +58,11 @@ export default function ComputeDetailsModal({
>
<h3 className={styles.title}>{computeJob.assetName}</h3>
<p>
Created on <Time date={computeJob.dateCreated} isUnix />
Created <Time date={computeJob.dateCreated} isUnix relative />
{computeJob.dateFinished && (
<>
<br />
Finished on <Time date={computeJob.dateFinished} isUnix />
Finished <Time date={computeJob.dateFinished} isUnix relative />
</>
)}
</p>

View File

@ -51,7 +51,7 @@ const columns = [
{
name: 'Finished',
selector: function getTimeRow(row: ComputeJobMetaData) {
return <Time date={row.dateFinished} isUnix />
return <Time date={row.dateFinished} isUnix relative />
}
},
{