0
我正試圖處理Django中的時區信息。我試圖做類似:在Django中處理時區
results = Competitor.objects.raw("SELECT official_start AT TIME ZONE 'UTC', official_finish AT TIME ZONE 'UTC' FROM competitor WHERE race_id=1")
以爲這樣我就知道時區是UTC,但說我在數據庫中存儲一段時間是「2010-07-30 15:11:23」在UTC ,在Django它會顯示爲'2010-07-30 10:11:23'。任何想法是怎麼回事?