How do I change the time to Taipei?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript">Convert date to another timezone in javascript</a>  </p>
</blockquote>



<p>How to  make this program get Taipei's time? Is their something to fix? or do I need to add some code for it?</p>

<pre><code>var yudan = "";
var now = new Date();
var month = now.getMonth() + 1;
var date = now.getDate();
var year = now.getFullYear();
if (year &lt; 2000) year = year + 1900;

document.write(year + "." + yudan + month + "." + date + ".");
</code></pre>

<hr>

<pre><code>document.write("&lt;span id=\"yudan_clock\"&gt;&lt;\/span&gt;");
var now,hours,minutes,seconds,timeValue;
function yudan_time(){
now = new Date();
hours = now.getHours();
minutes = now.getMinutes();
seconds = now.getSeconds();
timeValue = (hours &gt;= 12) ? " " : " ";
timeValue += ((hours &gt; 12) ? hours - 0 : hours) + ":";
timeValue += ((minutes &lt; 10) ? " 0" : " ") + minutes + ":";
timeValue += ((seconds &lt; 10) ? " 0" : " ") + seconds + "";
document.getElementById("yudan_clock").innerHTML = timeValue;
setTimeout(yudan_time, 100);}
yudan_time();
</code></pre>
