Commit 2d9c51e6 authored by Aurel's avatar Aurel

fix datetime patch

parent 3fef2282
......@@ -37,7 +37,10 @@ STATE_KEY = 'str'
original_DateTime__setstate__ = DateTimeKlass.__setstate__
def DateTime__setstate__(self, state):
self.__dict__.clear()
try: # BBB DateTime 2.12.8
self.__dict__.clear()
except AttributeError:
pass
if isinstance(state, tuple):
t, tz = state
ms = (t - math.floor(t))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment