ExtractYear and ExtractMonth returning None in Django

前端 未结 1 642
一生所求
一生所求 2021-01-15 15:37

I am trying to do group my data on the basis of Year, Month and a Column Value. The Query is

 FeedbackData.objects.annotate(year=ExtractYear(\'created\'), mo         


        
相关标签:
1条回答
  • 2021-01-15 16:14

    This will happen if you do not have any time zone info loaded into mysql

    convert_tz returns null

    0 讨论(0)
提交回复
热议问题