This commit is contained in:
James Brunton 2025-09-12 12:17:58 +01:00
parent 6a1caf0904
commit 668c47d5a0

View File

@ -24,7 +24,6 @@ function formatPDFDate(dateString: string): string {
return ''; return '';
} }
try {
let date: Date; let date: Date;
// Check if it's a PDF date format (starts with "D:") // Check if it's a PDF date format (starts with "D:")
@ -59,9 +58,6 @@ function formatPDFDate(dateString: string): string {
const seconds = String(date.getSeconds()).padStart(2, '0'); const seconds = String(date.getSeconds()).padStart(2, '0');
return `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`; return `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`;
} catch {
return '';
}
} }
/** /**