*/
public static LocalDateTime toLocalDateTime(Date date) {
return date.toInstant()
- .atZone(TimeZone.getTimeZone(ZoneOffset.UTC).toZoneId()) // java.util.Date uses UTC
+ .atZone(LocaleUtil.TIMEZONE_UTC.toZoneId()) // java.util.Date uses UTC
.toLocalDateTime();
}
*/
public static LocalDateTime toLocalDateTime(Calendar date) {
return date.toInstant()
- .atZone(TimeZone.getTimeZone(ZoneOffset.UTC).toZoneId()) // java.util.Date uses UTC
+ .atZone(LocaleUtil.TIMEZONE_UTC.toZoneId()) // java.util.Date uses UTC
.toLocalDateTime();
}