original issue MycroftAI#187
extracting_datetime() returns incorrect values if a week day is included with the utterance.
To Reproduce
extract_datetime("monday april 5th")
returns
[datetime.datetime(2022, 4, 11, 0, 0, tzinfo=tzfile('/usr/share/zoneinfo/Australia/Darwin')), '']
Removing "monday" from the utterance returns the correct value.
dayOffset:
The problem is that weekdays in on itself are treated as relative words (what is reflected in dayOffset from now) -or in other words durations. And those durations collide with the specific date given
If you are parsing "monday may 3rd" you're asking "2 days from now after may 3rd"
Furthermore things like "Friday after May 3rd" are also not correctly parsed since the relative date (or anchorDate) should be may 3rd in that case, not datenow