My web app is currently hosted somewhere in Great Britain and i have 2 hour difference with it but i need to use the time that is used by the server. So i use time() * 1000
and create from this timestamp
new date object like time_data.minDate = new Date(<?php echo $test_time['start'];?>);
, but i still receive +2h.
Full example:
time_data.minDate = new Date(<?php echo $test_time['start'];?>);
time_data.maxDate = new Date(<?php echo $test_time['end']['min'];?>);
console.log(time_data.minDate);
console.log('<?php echo date('Y-m-d H:i:s', $test_time['start'] / 1000)?>');
console.log(time_data.maxDate);
console.log('<?php echo date('Y-m-d H:i:s', $test_time['end']['min'] / 1000)?>');
So is it possible somehow to force to use the date from timestamp?