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.
Source:stackexchange.com
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.