重构大量文件
This commit is contained in:
+2
-1
@@ -88,7 +88,7 @@ export function pageToMarkdown(page: Page): string {
|
||||
const parts = new Intl.DateTimeFormat('sv-SE', options).formatToParts(dateObj);
|
||||
const getPart = (type: string) => parts.find(p => p.type === type)?.value || "";
|
||||
localDate = `${getPart('year')}-${getPart('month')}-${getPart('day')}T${getPart('hour')}:${getPart('minute')}:${getPart('second')}`;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// Fallback if timezone is invalid
|
||||
localDate = dateObj.toISOString().slice(0, 19);
|
||||
}
|
||||
@@ -184,3 +184,4 @@ function addPagesToZipRecursive(currentFolder: JSZip, parentId: string | null, a
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user