-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extracting_datetime()
returns incorrect values if a week day is included with the utterance
#187
Comments
May be addressed by WIP #96 (I haven't checked) |
not to say that 04/11/2022 isn't a monday. this one year offset also occurs at _de, yet not the day offset (in your example +6) - but i guess you parsed the day before today these are the codelines where the +6 should originate from:
|
Ok, got it. (one year offset) Since
eg (if called on the same day)
if it has no year the case would be skimmed through the WIP refactor and it seems it is not resolved with #96 |
dayOffset: 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 |
I have now identified that the refactor heavily addresses weekdays. Still haven't tested as I don't know the state of it; maintainers have obviously been stretched thin lately. Just in case, @JarbasAl ⬆️ and keep 'em coming! Edge cases galore on the way to rewrite glory, after all. |
@ChanceNCounter Hell yeah! There's a lot to identify. And tackles (from what i can tell) those pitfalls i measly outlined. Don't sleep on that one. And you've said there's nothing to localize :P |
Describe the bug
extracting_datetime()
returns incorrect values if a week day is included with the utterance.To Reproduce
returns
Removing "monday" from the utterance returns the correct value.
The text was updated successfully, but these errors were encountered: