[Answer]-Date filter in Django model results unexpected behavior

1👍

You should use django.utils.timezone.now instead of datetime.datetime.now.

from django.utils import timezone
today = timezone.now()
...

Read the question #3 in the troubleshooting section of the timezones docs.

Leave a comment