code: @SuppressWarnings("deprecation")
      private static Time shiftDST(LocalTime lt) {
          Time t = Time.valueOf(lt);
          int offset = Calendar.getInstance().get(Calendar.DST_OFFSET) / 1000;
          // I know this are deprecated methods, but it's so much clearer than alternatives
          int m = t.getSeconds();
          t.setSeconds(m + offset);
          return t;
      }
docs: Postgres gets confused by DST, it sets the timezone badly and then reads the wrong value out, so we convert the value to "winter time"
  
  @param lt the current time
  @return the time in "winter time" if there is DST in effect today