diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-10 10:26:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-10 10:26:20 +0200 |
commit | f228e9f064f27301e59533aac48fd6c2e533890d (patch) | |
tree | e6c650382f5663d41bdf8606224cd0029f19fa47 /client/src/app/+admin | |
parent | 2a491182e483b97afb1b65c908b23cb48d591807 (diff) | |
download | PeerTube-f228e9f064f27301e59533aac48fd6c2e533890d.tar.gz PeerTube-f228e9f064f27301e59533aac48fd6c2e533890d.tar.zst PeerTube-f228e9f064f27301e59533aac48fd6c2e533890d.zip |
More precise date for jobs
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/system/jobs/job.service.ts | 4 | ||||
-rw-r--r-- | client/src/app/+admin/system/jobs/jobs.component.html | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/+admin/system/jobs/job.service.ts b/client/src/app/+admin/system/jobs/job.service.ts index 6c4a07469..ef8ddd3b4 100644 --- a/client/src/app/+admin/system/jobs/job.service.ts +++ b/client/src/app/+admin/system/jobs/job.service.ts | |||
@@ -34,9 +34,7 @@ export class JobService { | |||
34 | 34 | ||
35 | return this.authHttp.get<ResultList<Job>>(JobService.BASE_JOB_URL + `/${jobState || ''}`, { params }) | 35 | return this.authHttp.get<ResultList<Job>>(JobService.BASE_JOB_URL + `/${jobState || ''}`, { params }) |
36 | .pipe( | 36 | .pipe( |
37 | map(res => { | 37 | map(res => this.restExtractor.convertResultListDateToHuman(res, [ 'createdAt', 'processedOn', 'finishedOn' ], 'precise')), |
38 | return this.restExtractor.convertResultListDateToHuman(res, [ 'createdAt', 'processedOn', 'finishedOn' ]) | ||
39 | }), | ||
40 | map(res => this.restExtractor.applyToResultListData(res, this.prettyPrintData)), | 38 | map(res => this.restExtractor.applyToResultListData(res, this.prettyPrintData)), |
41 | map(res => this.restExtractor.applyToResultListData(res, this.buildUniqId)), | 39 | map(res => this.restExtractor.applyToResultListData(res, this.buildUniqId)), |
42 | catchError(err => this.restExtractor.handleError(err)) | 40 | catchError(err => this.restExtractor.handleError(err)) |
diff --git a/client/src/app/+admin/system/jobs/jobs.component.html b/client/src/app/+admin/system/jobs/jobs.component.html index b53fafeba..a5266bde5 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.html +++ b/client/src/app/+admin/system/jobs/jobs.component.html | |||
@@ -69,7 +69,7 @@ | |||
69 | <ng-container *ngIf="hasProgress(job)">{{ getProgress(job) }}</ng-container> | 69 | <ng-container *ngIf="hasProgress(job)">{{ getProgress(job) }}</ng-container> |
70 | </td> | 70 | </td> |
71 | 71 | ||
72 | <td class="job-date c-hand" [pRowToggler]="job">{{ job.createdAt | date: 'short' }}</td> | 72 | <td class="job-date c-hand" [pRowToggler]="job">{{ job.createdAt }}</td> |
73 | </tr> | 73 | </tr> |
74 | </ng-template> | 74 | </ng-template> |
75 | 75 | ||