window['serverTime'] = 1731452364; 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});