code: def _timestamp_to_json_parameter(value):
      
      if isinstance(value, datetime.datetime):
          if value.tzinfo not in (None, UTC):
              # Convert to UTC and remove the time zone info.
              value = value.replace(tzinfo=None) - value.utcoffset()
          value = "%s %s+00:00" % (value.date().isoformat(), value.time().isoformat())
      return value
docs: Coerce 'value' to an JSON-compatible representation.
  
      This version returns the string representation used in query parameters.