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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user