1
See if this works:
from django.utils import timezone
timezone.localtime(timezone.now())
This is from the Django docs.
Source:stackexchange.com
1
See if this works:
from django.utils import timezone
timezone.localtime(timezone.now())
This is from the Django docs.