1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Merge pull request #18852 from Snuffleupagus/bug-1922618

Change how we handle l10n-args for dates in the DocumentProperties dialog (bug 1922618)
This commit is contained in:
Jonas Jenwald 2024-10-04 20:21:07 +02:00 committed by GitHub
commit 6aef332bcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}