Skip to content

Commit

Permalink
Merge pull request #18852 from Snuffleupagus/bug-1922618
Browse files Browse the repository at this point in the history
Change how we handle l10n-args for dates in the DocumentProperties dialog (bug 1922618)
  • Loading branch information
Snuffleupagus authored Oct 4, 2024
2 parents ac563b9 + c681ff2 commit 6aef332
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/pdf_document_properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6aef332

Please sign in to comment.