如果我执行的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