              lookup_type.lower(), field_name), [tzname]
  
      def datetime_trunc_sql(self, lookup_type, field_name, tzname):
          # Same comment as in date_trunc_sql.
          return "django_datetime_trunc('%s', %s, %%s)" % (
              lookup_type.lower(), field_name), [tzname]
  
      def time_extract_sql(self, lookup_type, field_name):
          # sqlite doesn't support extract, so we fake it with the user-defined
          # function django_time_extract that's registered in connect(). Note that
          # single quotes are used because this is a string (and could otherwise
 
</s> remove         return "django_datetime_extract('%s', %s, %%s)" % (
            lookup_type.lower(), field_name), [tzname]
 </s> add         return "django_datetime_extract('%s', %s, %s)" % (
            lookup_type.lower(), field_name, self._convert_tzname_to_sql(tzname),
        ) </s> remove         return "django_datetime_cast_time(%s, %%s)" % field_name, [tzname]
 </s> add         return "django_datetime_cast_time(%s, %s)" % (
            field_name, self._convert_tzname_to_sql(tzname),
        ) </s> remove         return "django_datetime_cast_date(%s, %%s)" % field_name, [tzname]
 </s> add         return "django_datetime_cast_date(%s, %s)" % (
            field_name, self._convert_tzname_to_sql(tzname),
        ) </s> remove         return sql, []
 </s> add         return sql
        return "django_datetime_trunc('%s', %s, %s)" % (
            lookup_type.lower(), field_name, self._convert_tzname_to_sql(tzname),
        )
              lookup_type.lower(), field_name), [tzname]
  
      def datetime_trunc_sql(self, lookup_type, field_name, tzname):
          # Same comment as in date_trunc_sql.
        return "django_datetime_trunc('%s', %s, %s)" % (
            lookup_type.lower(), field_name, self._convert_tzname_to_sql(tzname),
        )
        return "django_datetime_trunc('%s', %s, %s)" % (
            lookup_type.lower(), field_name, self._convert_tzname_to_sql(tzname),
        )
  
      def time_extract_sql(self, lookup_type, field_name):
          # sqlite doesn't support extract, so we fake it with the user-defined
          # function django_time_extract that's registered in connect(). Note that
          # single quotes are used because this is a string (and could otherwise
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #27802 -- Unified return value of db backend datetime SQL methods. 
django/db/backends/sqlite3/operations.py