diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-25 16:08:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-25 16:08:11 +0200 |
commit | 1c048f04a5a37fcf870804157216a271ac709e9d (patch) | |
tree | 570f20c693967beae5967c53a88136a6f1f1210f | |
parent | 52ebda26f6f3e312abfb16ac607c1d3310b7b667 (diff) | |
download | PeerTube-1c048f04a5a37fcf870804157216a271ac709e9d.tar.gz PeerTube-1c048f04a5a37fcf870804157216a271ac709e9d.tar.zst PeerTube-1c048f04a5a37fcf870804157216a271ac709e9d.zip |
Fix bad date display for jobs
-rw-r--r-- | client/src/app/core/rest/rest-extractor.service.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/core/rest/rest-extractor.service.ts b/client/src/app/core/rest/rest-extractor.service.ts index 57dd9ae26..de3f2bfff 100644 --- a/client/src/app/core/rest/rest-extractor.service.ts +++ b/client/src/app/core/rest/rest-extractor.service.ts | |||
@@ -37,6 +37,8 @@ export class RestExtractor { | |||
37 | 37 | ||
38 | convertDateToHuman (target: any, fieldsToConvert: string[], format?: DateFormat) { | 38 | convertDateToHuman (target: any, fieldsToConvert: string[], format?: DateFormat) { |
39 | fieldsToConvert.forEach(field => { | 39 | fieldsToConvert.forEach(field => { |
40 | if (!target[field]) return | ||
41 | |||
40 | target[field] = dateToHuman(this.localeId, new Date(target[field]), format) | 42 | target[field] = dateToHuman(this.localeId, new Date(target[field]), format) |
41 | }) | 43 | }) |
42 | 44 | ||