udatetime icon indicating copy to clipboard operation
udatetime copied to clipboard

datetimes cannot be pickled: attribute lookup FixedOffset_type on rfc3339 failed

Open federicoemartinez opened this issue 4 years ago • 0 comments

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

federicoemartinez avatar Apr 29 '20 21:04 federicoemartinez