change date/time format

Date and time now formatted in de-DE local time
This commit is contained in:
Mateo Körber Belmonte
2025-02-05 13:50:36 +01:00
parent ed28b2142a
commit f463f22191
+1 -1
View File
@@ -34,7 +34,7 @@ app.get('/', (req, res) => {
// Handle form submission
app.post('/submit', (req, res) => {
const date = new Date().toISOString().replace('T', ' ').split('.')[0]; // Aktuelles Datum und Uhrzeit
let date = new Date().toLocaleString('de-DE', { timeZone: 'Europe/Berlin' }).replace('"', '').replace(',', '');
const results = req.body;
// Ergebnisse in die CSV-Datei einfügen