diff --git a/web/pdf_document_properties.js b/web/pdf_document_properties.js index dd386ffec7517..3448f439b88cd 100644 --- a/web/pdf_document_properties.js +++ b/web/pdf_document_properties.js @@ -329,7 +329,9 @@ class PDFDocumentProperties { async #parseDate(inputDate) { const dateObj = PDFDateString.toDateObject(inputDate); return dateObj - ? this.l10n.get("pdfjs-document-properties-date-time-string", { dateObj }) + ? this.l10n.get("pdfjs-document-properties-date-time-string", { + dateObj: dateObj.valueOf(), + }) : undefined; }