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