aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-25 16:08:11 +0200
committerChocobozzz <me@florianbigard.com>2022-10-25 16:08:11 +0200
commit1c048f04a5a37fcf870804157216a271ac709e9d (patch)
tree570f20c693967beae5967c53a88136a6f1f1210f /client/src
parent52ebda26f6f3e312abfb16ac607c1d3310b7b667 (diff)
downloadPeerTube-1c048f04a5a37fcf870804157216a271ac709e9d.tar.gz
PeerTube-1c048f04a5a37fcf870804157216a271ac709e9d.tar.zst
PeerTube-1c048f04a5a37fcf870804157216a271ac709e9d.zip
Fix bad date display for jobs
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/core/rest/rest-extractor.service.ts2
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