Fix timezone issue: dates now display correctly by forcing local time interpretation

This commit is contained in:
2025-10-02 00:32:54 -04:00
parent 2d64213411
commit b08aeab3a4
2 changed files with 4 additions and 2 deletions

View File

@@ -34,7 +34,8 @@ defineProps<{
}>()
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', {
year: 'numeric',
month: 'long',