String formatPattern = "yyyy-MM-dd HH:mm:ss";
String utc = "2019-07-10T16:00:00.000Z";
ZonedDateTime zdt = ZonedDateTime.parse(utc);
LocalDateTime localDateTime = zdt.toLocalDateTime();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(formatPattern);
String gst = formatter.format(localDateTime.plusHours(8));
网友评论