We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd9ba48 commit 22f56fdCopy full SHA for 22f56fd
Python/libraries/datatypes-timex-expression/datatypes_timex_expression/timex_helpers.py
@@ -164,9 +164,9 @@ def timex_datetime_add(start, duration):
164
@staticmethod
165
def date_from_timex(timex):
166
return date(
167
- timex.year if timex.year is not None else 2001,
168
- timex.month if timex.month is not None else 1,
169
- timex.day_of_month if timex.day_of_month is not None else 1
+ int(timex.year) if timex.year is not None else 2001,
+ int(timex.month) if timex.month is not None else 1,
+ int(timex.day_of_month) if timex.day_of_month is not None else 1
170
)
171
172
0 commit comments