odświeżam temat by nie robić nowego o to mam taki kod od strony co pobieram dane chciałem cofnąć date o 1 dzień by wyświetlać dane dzień starsze i zrobiłem jak poniżej ale nie działa mi to co robie źle


$(window).on('load', function(){
GAME.serv_time=ts.now()-(24*3600);
GAME.parseServerTime();
GAME.lang=locals.lang;
$('#fight_speed option[value='+GAME.fight_speed+']').prop('selected',true);
$('#animations_off option[value='+GAME.animations_off+']').prop('selected',true);
setInterval(function(){
GAME.processServerTime();
GAME.timers_tick();
}, 1000);
tooltip_bind();
keybinds();
switch(notify.permissionLevel()){
case 'default':
notify.requestPermission(function(){
GAME.push_enabled=true;
});
break;
default:
GAME.push_enabled=true;
break;
}
});