mirror of
https://github.com/Matewoo/tablet-web-survey.git
synced 2026-11-18 13:52:47 +01:00
change date/time format
Date and time now formatted in de-DE local time
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user