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:
commit
6aef332bcd
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue