diff --git a/svelte-app/src/lib/helpers/date.ts b/svelte-app/src/lib/helpers/date.ts index bbf0008a0..e9600c93f 100644 --- a/svelte-app/src/lib/helpers/date.ts +++ b/svelte-app/src/lib/helpers/date.ts @@ -8,6 +8,8 @@ export const formatDate = ( lang: string = get(currentLang) || 'en' ) => { const date = new Date(dateStr); + date.setHours(0, 0, 0, 0); + date.setMinutes(date.getMinutes() - date.getTimezoneOffset()); switch (format) { case 'full': return new Intl.DateTimeFormat(lang, {