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 { 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, " ") : ""; const cleanMessage = rawData.message ? rawData.message.replace(/[\r\n;]/g, " ") : "";
// Mail till klubben // Mail till klubben
+1 -1
View File
@@ -1,4 +1,4 @@
NEXT_PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA TURNSTILE_SITE_KEY=1x00000000000000000000AA
TURNSTILE_SECRET=1x0000000000000000000000000000000AA TURNSTILE_SECRET=1x0000000000000000000000000000000AA
ADMIN_PASSWORD=PASSWORD ADMIN_PASSWORD=PASSWORD
+501 -400
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -10,7 +10,7 @@
}, },
"dependencies": { "dependencies": {
"@marsidev/react-turnstile": "^1.4.2", "@marsidev/react-turnstile": "^1.4.2",
"next": "16.1.6", "next": "^16",
"nodemailer": "^8.0.1", "nodemailer": "^8.0.1",
"postcss": "^8.5.6", "postcss": "^8.5.6",
"react": "19.2.3", "react": "19.2.3",