Convert UTC Time T0 Local Time In Java and c#
<p>In c#:</p>

<pre><code>DateTime dateTime = DateTime.Parse(text, CultureInfo.InvariantCulture);
string s = dateTime.ToLocalTime().ToString("s", CultureInfo.InvariantCulture));
</code></pre>

<p>The <code>text</code> is <code>2011-06-30T05:48:34Z</code>, and the <code>s</code> is <code>2011-6-30 13:48:34</code></p>

<p>In java:</p>

<pre><code>DateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
// explicitly set timezone of input if needed
df.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
java.util.Date dateTime ;
dateTime = df.parse(text);
String s= df.format(dateTime));
</code></pre>

<p>but the <code>s</code> is <code>2011-6-30 05:48:34</code>. How to implement ToLocalTime() function in Java?</p>
