docs: def localize_preserving_time_of_day(dt):
      """
      Return the given datetime with the same time-of-day (hours and minutes) as
      it *seems* to have, even if it has been adjusted by applying `timedelta`
      additions that traverse daylight savings dates and would therefore
      otherwise trigger changes to its apparent time.
      """
      # Remember the apparent time-of-day years, month, hours and minutes
      year, month, day, hour, minute = \
          dt.year, dt.month, dt.day, dt.hour, dt.minute
      # Ensure we have a localized datetime, which will trigger any hour/minute
      # changes depending on daylight saving changes triggered by a timedelta
      # operation
      dt_localized = djtz.localize(dt)
      # Forcibly reset the hour and minute time-of-day values to the apparent
      # values we stored
      return dt_localized.replace(
          year=year, month=month, day=day, hour=hour, minute=minute)