so I'm trying to create a timer to count down every 12 hrs based on my web host Time Zone (GMT+10), for example, amount of time till 12am than once 12am passes how long till 12pm and so on. I currently have some code but I believe it only counts down 24 hrs...
setInterval(function time(){
var d = new Date();
var hours = 24 - d.getHours();
var min = 60 - d.getMinutes();
if((min + '').length == 1){
min = '0' + min;
}
var sec = 60 - d.getSeconds();
if((sec + '').length == 1){
sec = '0' + sec;
}
jQuery('#the-final-countdown p').html(hours+':'+min+':'+sec)
}, 1000);
Oh and a quick little bonus question... If possible would any one know (if their is any way to make this timer) when the timer reaches 00:00:00 to display text for 30 seconds than resume the count down?