      def to_representation(self, value):
          if value is None or self.format is None:
              return value
  
          if isinstance(value, datetime.datetime):
              value = value.date()
  
          if self.format.lower() == ISO_8601:
              return value.isoformat()
          return value.strftime(self.format)
  
  
 
</s> remove             return value.isoformat()
 </s> add             ret = value.isoformat()
            if ret.endswith('+00:00'):
                ret = ret[:-6] + 'Z'
            return ret </s> remove             ret = value.isoformat()
            if ret.endswith('+00:00'):
                ret = ret[:-6] + 'Z'
            return ret
 </s> add             return value.isoformat() </s> remove         if isinstance(value, datetime.datetime):
            value = value.time()
 </s> add         # Applying a `TimeField` to a datetime value is almost always
        # not a sensible thing to do, as it means naively dropping
        # any explicit or implicit timezone info.
        assert not isinstance(value, datetime.datetime), (
            'Expected a `time`, but got a `datetime`. Refusing to coerce, '
            'as this may mean losing timezone information. Use a custom '
            'read-only field and deal with timezone issues explicitly.'
        ) </s> remove         humanized_format = humanize_datetime.datetime_formats(self.input_formats)
 </s> add         humanized_format = humanize_datetime.date_formats(self.input_formats) </s> remove         humanized_format = humanize_datetime.date_formats(self.input_formats)
 </s> add         humanized_format = humanize_datetime.datetime_formats(self.input_formats)
      def to_representation(self, value):
          if value is None or self.format is None:
              return value
  



          if self.format.lower() == ISO_8601:
              return value.isoformat()
          return value.strftime(self.format)
  
  
keep keep keep keep replace replace replace keep keep keep keep keep
 Refuse to downcast from datetime to date or time 
rest_framework/fields.py