@Nonnull @Override public java.time.LocalDateTime convert(LocalDateTime source) { Date date = toDate(source.atZone(ZoneId.systemDefault()).toInstant()); return Jsr310Converters.DateToLocalDateTimeConverter.INSTANCE.convert(date); } } org.springframework.data.convertJsr310Converters$Date...
OffsetTime), as necessary in SD Redis's Jsr310Converters class (see here). Although, since Java's OffsetDateTime (and OffsetTime) have been part of the JDK since Java 8 (for example; see @since tag), but were not added to SD Redis's Jsr310Converters class along with other java.time ...
Currently we are using Spring Frameworks ObjectToObject converters for some date conversions, which uses a lot of reflection. This could be improved on when we use our dedicated JSR 310 converters, which unfortunately doesn't seem to be straight forward. See spring-data-relational/spring-data-...
import java.util.Date; import org.springframework.data.convert.Jsr310Converters.DateToLocalDateConverter; import org.springframework.data.convert.Jsr310Converters.DateToLocalDateTimeConverter; import org.springframework.data.convert.Jsr310Converters.DateToLocalTimeConverter; import org.springframework.data.conv...
public abstract class Jsr310Converters { private static final boolean JAVA_8_IS_PRESENT = ClassUtils.isPresent("java.time.LocalDateTime", Jsr310Converters.class.getClassLoader()); /** * Returns the converters to be registered. Will only return converters in case we're running on Java 8. ...