title: Convert java.sql.Timestamp to Java 8 ZonedDateTime?
body: <p>Migrating Joda time to Java 8</p>
  
  <p>Joda:</p>
  
  <pre><code>UserObject user = new UserObject()
  user.setCreatedAt(new DateTime(rs.getTimestamp("columnName")));`
  </code></pre>
  
  <p>Migrating to Java 8</p>
  
  <p>This is my code; it does compile; I am doubtful if it works:</p>
  
  <pre><code>ZonedDateTime.ofInstant(rs.getTimestamp("columnName").toLocalDateTime().toInstant(ZoneOffset.UTC),ZoneId.of("UTC")));
  </code></pre>
  
  <p>In some cases, the date is wrong. Any advice?</p>