protected static ZonedDateTime getAsZonedDateTime ( ResultSet rs , int index , ZoneId zoneId ) throws SQLException { Timestamp timestamp = rs . getTimestamp ( index ) ; if ( timestamp != null ) { return timestamp . toLocalDateTime ( ) . atZone ( zoneId ) ; } return null ; }
Get the column value as ZonedDateTime .