class LocalDateUtil {

    public static LocalDateTime fromDate(Date date) {
        if (date == null) {
            return now();
        }
        return LocalDateTime.ofInstant(date.toInstant(), ZoneOffset.UTC);
    }

    private  LocalDateUtil();

}