时区转换
TimeZone timeZone = TimeZone.getTimeZone("Asia/Hong_Kong"); //设置时区Calendar calendar = Calendar.getInstance(Locale.getDefault());
calendar.setTimeZone(timeZone);
calendar.setTimeInMillis(Long.valueOf(time)); //0时间(毫秒)
int zoneOffset = calendar.get(Calendar.ZONE_OFFSET); //偏移量
int dstOffset = calendar.get(Calendar.DST_OFFSET); //偏移量
calendar.add(Calendar.MILLISECOND, +(zoneOffset + dstOffset));
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
System.out.println(df.format(calendar.getTime()));