You're in luck! There is no DST in Manila. That makes it so much easier:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Manila Time</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<span>Time in Manila - <span id="manilatime"> </span></span>
<script type="text/javascript" defer>
;(function(){
var getManilaTime = function(){
var d = new Date(), h, m, s, ampm;
d.setMinutes(d.getMinutes() + d.getTimezoneOffset());
d.setHours(d.getHours() + 8);
h = d.getHours();
m = d.getMinutes();
s = d.getSeconds();
ampm = h > 11? 'pm' : 'am';
h = h%12 || 12;
document.getElementById('manilatime').firstChild.nodeValue = h + ':' + m + ':' + s + ampm;
}
getManilaTime();
setInterval(getManilaTime, 1000);
})();
</script>
</body>
</html>
Bookmarks