fix(pwa+timezone)
Some checks failed
Deploy to Development / build-and-deploy (push) Has been cancelled
Deploy to Production / build-and-deploy (push) Successful in 1m32s

This commit is contained in:
EvanChal
2026-01-25 23:54:42 +01:00
parent e32b1ce04e
commit 02a54f5625
23 changed files with 579 additions and 85 deletions

View File

@@ -159,8 +159,7 @@ import { useAuthStore } from '@/stores/auth'
import { useToast } from 'vue-toastification'
import axios from '@/utils/axios'
import { getMediaUrl } from '@/utils/axios'
import { format } from 'date-fns'
import { fr } from 'date-fns/locale'
import { formatDateInFrenchTimezone } from '@/utils/dateUtils'
import { User, Camera } from 'lucide-vue-next'
const authStore = useAuthStore()
@@ -179,7 +178,7 @@ const form = ref({
function formatDate(date) {
if (!date) return ''
return format(new Date(date), 'MMMM yyyy', { locale: fr })
return formatDateInFrenchTimezone(date, 'MMMM yyyy')
}
function resetForm() {