DATACMNS-1212 - Remove unnecessary conversion between Instant and ZonedDateTime.

Converting from instant to ZoneDateTime and back to Instant does not seem to have a purpose as the timezone information will never be used

Original pull request: #260.
This commit is contained in:
Henri
2017-11-15 11:52:34 +01:00
committed by Mark Paluch
parent 656fb75c22
commit f0d7a657fc

View File

@@ -192,7 +192,7 @@ public abstract class Jsr310Converters {
@Nonnull
@Override
public Date convert(Instant source) {
return Date.from(source.atZone(systemDefault()).toInstant());
return Date.from(source);
}
}