original_docstring: 
          Transforms a datetime value to an object compatible with what is expected
          by the backend driver for datetime columns.
          
docstring: Transforms a datetime value to an object compatible with what is expected
  by the backend driver for datetime columns.
docstring_tokens: Transforms a datetime value to an object compatible with what is expected by the backend driver for datetime columns .
code: def adapt_datetimefield_value(self, value):
          """
          Transforms a datetime value to an object compatible with what is expected
          by the backend driver for datetime columns.
          """
          if value is None:
              return None
          if settings.USE_TZ and timezone.is_aware(value):
              # pyodbc donesn't support datetimeoffset
              value = value.astimezone(self.connection.timezone).replace(tzinfo=None)
          return value
code_tokens: def adapt_datetimefield_value ( self , value ) : if value is None : return None if settings . USE_TZ and timezone . is_aware ( value ) : value = value . astimezone ( self . connection . timezone ) . replace ( tzinfo = None ) return value
short_docstring: Transforms a datetime value to an object compatible with what is expected
  by the backend driver for datetime columns.
short_docstring_tokens: Transforms a datetime value to an object compatible with what is expected by the backend driver for datetime columns .
comment: """
          Transforms a datetime value to an object compatible with what is expected
          by the backend driver for datetime columns.
          """$SEP$# pyodbc donesn't support datetimeoffset