mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 17:39:24 +00:00
Tidy
This commit is contained in:
parent
6a1caf0904
commit
668c47d5a0
@ -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 '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user