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 {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user