作者:wasw100
網址:http://www.wasw100.com/java/swing_time_8_hours.html
參考文章:http://blog.csdn.net/subchen/archive/2008/04/18/2303402.aspx
在main中調用:
System.setProperty("user. timezone", "GMT+8");
不起作用
改爲
TimeZone.setDefault(TimeZone.getTimeZone("ETC/GMT-8"));
時間顯示正確
--EOF--