Setzen Sie den datetime-lokalen Wert JavaScript
var now = new Date();
now.setMinutes(now.getMinutes() - now.getTimezoneOffset());
document.getElementById('dt').value = now.toISOString().slice(0,16);
Breakable Barracuda