You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since DateTime 5.2, using DateTime.DateTime.equalTo with something else than a DateTime or a number throws AttributeError. This is a regression from #54 ( cc @fdiary )
What I did:
>>> import DateTime
>>> DateTime.DateTime() == ""
False
>>> DateTime.DateTime().equalTo("")
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "./DateTime/src/DateTime/DateTime.py", line 1295, in equalTo
return self._micros == t._micros
AttributeError: 'str' object has no attribute '_micros'
What I expect to happen:
DateTime.DateTime().equalTo("") should be False
What actually happened:
AttributeError: 'str' object has no attribute '_micros'
What version of Python and Zope/Addons I am using:
BUG/PROBLEM REPORT / FEATURE REQUEST
Since DateTime 5.2, using
DateTime.DateTime.equalTo
with something else than aDateTime
or a number throwsAttributeError
. This is a regression from #54 ( cc @fdiary )What I did:
What I expect to happen:
DateTime.DateTime().equalTo("")
should beFalse
What actually happened:
AttributeError: 'str' object has no attribute '_micros'
What version of Python and Zope/Addons I am using:
This is current master branch 955f3b9
The text was updated successfully, but these errors were encountered: