const currentDateTime = new Date(Date.now() - new Date().getTimezoneOffset() * 60000).toISOString().replace('T', ' ').substring(0, 19);
 
console.log(currentDateTime);

 

 

 

 

 

.

Posted by bloodguy
,