udatetime
udatetime copied to clipboard
datetimes cannot be pickled: attribute lookup FixedOffset_type on rfc3339 failed
When you try to pickle a datetime object, you get this error:
>>> import udatetime
>>> import pickle
>>> d = udatetime.now()
>>> pickle.dumps(d)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'rfc3339.FixedOffset_type'>: attribute lookup FixedOffset_type on rfc3339 failed