Fix timezone issue in individual sermon page formatDate function

This commit is contained in:
2025-10-02 00:36:40 -04:00
parent 82aaf15957
commit 413df3dabc

View File

@@ -145,7 +145,8 @@ const fontSizeClasses = computed(() => {
})
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',