public static ZonedDateTime zonedDateTimeOf(final String value) {
        val parsers = List.of(DateTimeFormatter.ISO_ZONED_DATE_TIME, DateTimeFormatter.RFC_1123_DATE_TIME);
        return parsers
            .stream()
            .map(parser -> FunctionUtils.doAndHandle(() -> ZonedDateTime.parse(value, parser), throwable -> null).get())
            .filter(Objects::nonNull)
            .findFirst()
            .orElse(null);
    }
Parse the given value as a zoned datetime.

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