Fix bad date display for jobs

pull/5378/head
Chocobozzz 2022-10-25 16:08:11 +02:00
parent 52ebda26f6
commit 1c048f04a5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ export class RestExtractor {
convertDateToHuman (target: any, fieldsToConvert: string[], format?: DateFormat) {
fieldsToConvert.forEach(field => {
if (!target[field]) return
target[field] = dateToHuman(this.localeId, new Date(target[field]), format)
})