### Question:
DateUtil { public static ZonedDateTime dateToLocalDateTime(Date date){ Instant endDateInstant = Instant.ofEpochMilli(date.getTime()); return ZonedDateTime.ofInstant(endDateInstant, ZoneOffset.UTC); }  static ZonedDateTime dateToLocalDateTime(Date date);  }### Answer:
@Test public void testDateToLocalDateTime() throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss z"); Date date = sdf.parse("2001.07.04 12:08:56 UTC"); ZonedDateTime localDateTime = DateUtil.dateToLocalDateTime(date); assertThat(ZonedDateTime.of(LocalDateTime.of(2001, Month.JULY, 4, 12, 8, 56), ZoneId.of("Z"))).isEqualTo(localDateTime); }