如果我執行的GMT時區的計算機上以下日曆返回日期錯誤的時區
TimeZone timeZone = TimeZone.getTimeZone('IST'); // India Standard Time
Calendar calendar = Calendar.getInstance(timeZone);
System.out.println(calendar.getTime());
它打印
週五10月31日十五時18分22秒格林尼治標準時間2014
爲什麼在計算機的默認時區打印日期,而不是TimeZone
Calendar
是用?
[爲什麼日曆會在正確的時區返回錯誤的小時?](http://stackoverflow.com/questions/19299659/why-is-calendar-returning-the-wrong-hour-with正確的時區)和[this](http://stackoverflow.com/q/1516213/642706)和[this](http://stackoverflow.com/q/9410806/642706)和[this ](http://stackoverflow.com/q/14124701/642706)等等。 – 2014-11-02 01:48:46