@ Nullable @ ContainsSoftMigration public static LocalDateTime readAsLocalDateTime ( @ Nonnull final IMicroElement aElement , @ Nonnull final IMicroQName aLDTName , @ Nonnull final String aDTName ) { LocalDateTime aLDT = aElement . getAttributeValueWithConversion ( aLDTName , LocalDateTime . class ) ; if ( aLDT == null ) { final ZonedDateTime aDT = aElement . getAttributeValueWithConversion ( aDTName , ZonedDateTime . class ) ; if ( aDT != null ) aLDT = aDT . toLocalDateTime ( ) ; } return aLDT ; }
For migration purposes - read LocalDateTime - if no present fall back to DateTime