code: @SuppressWarnings("deprecation")
      public static Timestamp toSqlTimestamp(LocalDateTime dateTime) {
          return new Timestamp(
                  dateTime.getYear() - 1900,
                  dateTime.getMonthValue() - 1,
                  dateTime.getDayOfMonth(),
                  dateTime.getHour(),
                  dateTime.getMinute(),
                  dateTime.getSecond(),
                  dateTime.getNano());
      }
docs: Converts a {@code LocalDateTime} to a {@code java.sql.Timestamp}.
  
  @param dateTime  the local date-time, not null
  @return the SQL timestamp, not null