JS Convert Tanggal agar sesuai dengan nilai datetime-lokal

var now = new Date();
now.setMinutes(now.getMinutes() - now.getTimezoneOffset());
document.getElementById('dt').value = now.toISOString().slice(0,16);
Breakable Barracuda