Skip to content
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

Wrong date returned when having a date mentioned in the text #165

Closed
vkalokyri opened this issue May 19, 2016 · 3 comments
Closed

Wrong date returned when having a date mentioned in the text #165

vkalokyri opened this issue May 19, 2016 · 3 comments

Comments

@vkalokyri
Copy link

I have the following text: "lunch with Andrew @ Mon Mar 7, 2016" and as a reference date "2016-03-06", and it gives me as output : 2016-03-08 13:00:00. How did it calculate this date?
This bug happens with other cases as well: e.g. "meeting on Tuesday, 3/29" and reference date="2016-03-24", gives as output date: 2016-04-03.

@idpaterson
Copy link
Collaborator

Interesting, it looks like "Mon Mar 7, 2016" is being treated as "Mar 7, 2016 plus the number of days between the reference date and the next Monday" and similarly, "Tuesday, 3/29" as "3/29 plus the number of days between the reference date and the next Tuesday."

bear added a commit that referenced this issue Aug 23, 2016
fix date interpretation when day is also provided (#165)
@jonklein
Copy link
Collaborator

This should be fixed by the above referenced PR - I think it can be closed out.

@bear
Copy link
Owner

bear commented Aug 23, 2016

closing this as @jonklein has fixed #178

@bear bear closed this as completed Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants