docs: public void toBinDate(TimeZone tz, byte[] bytes, Date value) throws PSQLException {
      long millis = value.getTime();
  
      if (tz == null) {
        tz = getDefaultTz();
      }
      // It "getOffset" is UNTESTED
      // See org.postgresql.jdbc.AbstractJdbc2Statement.setDate(int, java.sql.Date,
      // java.util.Calendar)
      // The problem is we typically do not know for sure what is the exact required date/timestamp
      // type
      // Thus pgjdbc sticks to text transfer.
      millis += tz.getOffset(millis);
  
      long secs = toPgSecs(millis / 1000);
      ByteConverter.int4(bytes, 0, (int) (secs / 86400));
    }