fix issues

This commit is contained in:
2026-07-22 15:43:00 +08:00
parent cf63ed5e3f
commit 4fe5abb74a
2 changed files with 16 additions and 2 deletions

View File

@@ -745,7 +745,8 @@
}
function formatMonth(dateStr) {
const parts = dateStr.split('/');
const clean = dateStr.replace(/-/g, '/');
const parts = clean.split('/');
if (parts.length >= 2) return `${parts[0]}${parseInt(parts[1], 10)}`;
return dateStr.substring(0,7);
}