Fix timezone issue in admin page formatDate function

This commit is contained in:
2025-10-02 00:33:45 -04:00
parent b08aeab3a4
commit 82aaf15957

View File

@@ -499,7 +499,8 @@ async function handleDelete() {
} }
function formatDate(dateString: string) { function formatDate(dateString: string) {
const date = new Date(dateString) // Add T00:00:00 to ensure the date is interpreted as local time, not UTC
const date = new Date(dateString + 'T00:00:00')
return date.toLocaleDateString('en-US', { return date.toLocaleDateString('en-US', {
year: 'numeric', year: 'numeric',
month: 'long', month: 'long',