dateparser cannot recognize Finnish dates with "klo" inside.
Code that reproduces the issue
import dateparser
dateparser.parse("28 maalis klo 9:37")
Expected behavior
The above code should return datetime.datetime(2025, 3, 28, 9, 37)
Observed behavior
The above code returns None.
Notice that dateparser correctly deals with forms without "klo":
>>> dateparser.parse("28 maalis 9:37")
datetime.datetime(2025, 3, 28, 9, 37)
It also works when "klo" is added to SKIP_TOKENS settings:
>>> dateparser.parse("28 maalis klo 9:37", settings={"SKIP_TOKENS":["klo"]})
datetime.datetime(2025, 3, 28, 9, 37)
dateparser cannot recognize Finnish dates with "klo" inside.
Code that reproduces the issue
Expected behavior
The above code should return datetime.datetime(2025, 3, 28, 9, 37)
Observed behavior
The above code returns
None.Notice that dateparser correctly deals with forms without "klo":
It also works when "klo" is added to SKIP_TOKENS settings: