Closed ajahansh closed 3 years ago
It seems that this package is no longer actively supported. Better to stay away from it for the moment !
Did you dump the database and now you want to restore it? If the answer is yes how did you do it? I haven't used Django for a long time.
BTW implementing timezone in jdatetime.datetime.strptime is quite complex. I created an issue for https://github.com/slashmili/python-jalali/issues/53
Yes, I dumped a model containing jDateTimeField
. It gets dumped correctly as UTC: "23:59:03+0000"
, but it is unsuccessful in loaddata
. +0000
can not be parsed.
I hope that in 2021 the issue is resolved! If anyone has the problem, please report it again.
django_jalali could not parse datetime in loaddata command. though dumpdata is working fine ("%H:%M:%S%z"). It seems that the problem might be not parsing %z in jdatetime, although django.utils.timezone.datetime does that.