I am facing some issues with time formats in django.
My models DateTimeField is using auto_now to store datetime and I am trying to filter data using this datetimefield.
The input datetime which I am using to comapre is in differenr format like 2016-1-5T5:00:00
and datetime stored in djnago models is default django format since I am using auto_now
.
The error I am getting is as follows :
RuntimeWarning: DateTimeField MyModel.modified_at received a naive datetime (2016-01-05 05:00:00) while time zone support is active.
RuntimeWarning)
So I guess I need to convert the input time into django suitable format. Any idea how I can compare these two dates so that my query can filter correct data.