          return "CAST((FROM_TZ(%s, '0:00') AT TIME ZONE '%s') AS TIMESTAMP)" % (field_name, tzname)
  
      def datetime_cast_date_sql(self, field_name, tzname):
          field_name = self._convert_field_to_tz(field_name, tzname)
          sql = 'TRUNC(%s)' % field_name
          return sql, []
  
      def datetime_cast_time_sql(self, field_name, tzname):
          # Since `TimeField` values are stored as TIMESTAMP where only the date
          # part is ignored, convert the field to the specified timezone.
          field_name = self._convert_field_to_tz(field_name, tzname)
 
</s> remove         field_name = self._convert_field_to_tz(field_name, tzname)
        return field_name, []
 </s> add         return self._convert_field_to_tz(field_name, tzname) </s> remove         return sql, []
 </s> add         return sql </s> remove             field_name = "%s AT TIME ZONE %%s" % field_name
            params = [tzname]
        else:
            params = []
        return field_name, params
 </s> add             field_name = "%s AT TIME ZONE '%s'" % (field_name, tzname)
        return field_name </s> remove         field_name, params = self._convert_field_to_tz(field_name, tzname)
        sql = "DATE(%s)" % field_name
        return sql, params
 </s> add         field_name = self._convert_field_to_tz(field_name, tzname)
        return "DATE(%s)" % field_name </s> remove         field_name, params = self._convert_field_to_tz(field_name, tzname)
        sql = '(%s)::date' % field_name
        return sql, params
 </s> add         field_name = self._convert_field_to_tz(field_name, tzname)
        return '(%s)::date' % field_name
        return 'TRUNC(%s)' % field_name
          return "CAST((FROM_TZ(%s, '0:00') AT TIME ZONE '%s') AS TIMESTAMP)" % (field_name, tzname)
  
      def datetime_cast_date_sql(self, field_name, tzname):
          field_name = self._convert_field_to_tz(field_name, tzname)
        return 'TRUNC(%s)' % field_name
        return 'TRUNC(%s)' % field_name
  
      def datetime_cast_time_sql(self, field_name, tzname):
          # Since `TimeField` values are stored as TIMESTAMP where only the date
          # part is ignored, convert the field to the specified timezone.
          field_name = self._convert_field_to_tz(field_name, tzname)
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/oracle/operations.py