Fixed date-string and updated the example env-file.

This commit is contained in:
2026-04-18 11:07:20 +02:00 Verified
parent 1fc6f56bab
commit e0afe8428c
4 changed files with 513 additions and 404 deletions
+9 -1
View File
@@ -82,7 +82,15 @@ export async function submitRegistration(prevState: any, formData: FormData) {
});
try {
const dateStr = new Date().toISOString().replace('T', ' ').substring(0, 19);
const dateStr = new Date().toLocaleString('sv-SE', {
timeZone: 'Europe/Stockholm',
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
});
const cleanMessage = rawData.message ? rawData.message.replace(/[\r\n;]/g, " ") : "";
// Mail till klubben