persiantools
persiantools copied to clipboard
to_jalali tzname error
Hey.
Code:
from django.utils import timezone
JalaliDateTime.to_jalali(self.created_at, tzinfo=timezone.tzinfo).strftime('%d %B %Y - %H:%M', locale='fa')
Execption:
tzname(dt) argument must be a datetime instance or None, not JalaliDateTime