private OffsetDateTime convertToOffsetDateTime(Object srcObject) {
        Class<?> srcObjectClass = srcObject.getClass();
        if (Date.class.isAssignableFrom(srcObjectClass)) {
            Instant instant = ((Date)srcObject).toInstant();
            return OffsetDateTime.ofInstant(instant, ZoneId.systemDefault());
        } else if (Instant.class.isAssignableFrom(srcObjectClass)) {
            return OffsetDateTime.ofInstant((Instant)srcObject, ZoneId.systemDefault());
        } else if (Long.class.isAssignableFrom(srcObjectClass)) {
            Instant instant = Instant.ofEpochMilli((Long)srcObject);
            return OffsetDateTime.ofInstant(instant, ZoneId.systemDefault());
        } else {
            return null;
        }
    }
Internal class for converting supported types to {@link java.time.OffsetDateTime}.
Only intended for internal use.
core/src/main/java/com/github/dozermapper/core/converters/OffsetDateTimeConverter.java