javascript идущие часы с определением timezone
function current_time(){ let bangkok_datetime_str=new Date().toLocaleString("en-US",{timeZone:"Asia/Bangkok"}); var date=new Date(bangkok_datetime_str); var hours=date.getHours(); var minutes=date.getMinutes(); var seconds=date.getSeconds(); if(hours<10)hours="0"+hours; if(minutes<10)minutes="0"+minutes; if(seconds<10)seconds="0"+seconds; document.getElementById('current_time').innerHTML='<span class="number">'+hours+'</span><span class="dot">:</span><span class="number">'+minutes+'</span><span class="dot">:</span><span class="number">'+seconds+'</span>'; } $(document).ready(function(){ setInterval(current_time,1000); });
<div id="current_time"></div>