window['serverTime'] = 1733100069; window['intervalServerTime']=Math.ceil(Date.parse(new Date())/1000)-window['serverTime']; function getCurrentTimestamp(){return Math.ceil(Date.parse(new Date())/1000)-window['intervalServerTime'];} setInterval(function(){window['serverTime']=getCurrentTimestamp(),1000});