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