JSFiddle - React, Tailwind, and code Playground

JavaScript

var to_unix = Math.round( (Date.now() + (new Date().getTimezoneOffset()) )  / 1000);
    console.log(to_unix);