Commit 48e03ebf authored by Aurel's avatar Aurel

new __eq__ method on DateTime consider that different timezone are unequal

parent fff30007
...@@ -34,6 +34,9 @@ SyntaxError, DateError, TimeError, localtime, time ...@@ -34,6 +34,9 @@ SyntaxError, DateError, TimeError, localtime, time
STATE_KEY = 'str' STATE_KEY = 'str'
original_DateTime__eq__ = DateTimeKlass.__eq__
DateTimeKlass.__eq__ = DateTimeKlass.equalTo
original_DateTime__setstate__ = DateTimeKlass.__setstate__ original_DateTime__setstate__ = DateTimeKlass.__setstate__
def DateTime__setstate__(self, state): def DateTime__setstate__(self, state):
......
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