public static LocalDate localDateOf(final long time) {
        return LocalDate.ofInstant(Instant.ofEpochMilli(time), ZoneOffset.UTC);
    }
Local date time local date.

@param time the time
@return the local date
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/DateTimeUtils.java