Skip to content

Commit

Permalink
NLU-2966: Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwalshgen committed Jun 10, 2022
1 parent cd9ba48 commit 22f56fd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def timex_datetime_add(start, duration):
@staticmethod
def date_from_timex(timex):
return date(
timex.year if timex.year is not None else 2001,
timex.month if timex.month is not None else 1,
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
)

@staticmethod
Expand Down

0 comments on commit 22f56fd

Please sign in to comment.