Fixed date-string and updated the example env-file.
This commit is contained in:
@@ -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
@@ -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
|
||||||
|
|||||||
Generated
+501
-400
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user