1
그래서 나는Redshift의 네이티브 'AT TIMEZONE'을 django 쿼리를 통해 사용 하시겠습니까?
query = MyModel.objects.filter(some_filter).filter(eventTime__date__gte=start_date).filter(eventTime__date__lte=end_date)....
나는에 연결하고 적색 편이 테이블은 UTC으로 EVENTTIME을 가지고 같이가는이 쿼리가 있습니다. 그것은 나를 내가 장고 쿼리 형식 AT TIME ZONE 'MST'
것을 사용할 수있는 방법
select eventtime AT TIME ZONE 'MST' from mymodel limit 1;
같은 네이티브 SQL에서 조회 할 수 있습니다?