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:
commit
6aef332bcd
@ -329,7 +329,9 @@ class PDFDocumentProperties {
|
|||||||
async #parseDate(inputDate) {
|
async #parseDate(inputDate) {
|
||||||
const dateObj = PDFDateString.toDateObject(inputDate);
|
const dateObj = PDFDateString.toDateObject(inputDate);
|
||||||
return dateObj
|
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;
|
: undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user