-
Notifications
You must be signed in to change notification settings - Fork 4
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
describing times without minutes results in bad times #37
Comments
Hello, date times are parsed using chrono-english crate. In the project README it shows:
On my machine:
The calculated value is surprising ^^' it might be a bug with the I need to check that when I have some time =) |
Here's another failure:
I'm not sure why it got the time right but it ate the description of the activity. Adding quotes doesn't help:
It should look like this:
|
The issue is that Here's how
Here's the piece of code that does just that: Lines 10 to 23 in c2765cc
I have no clue how to solve this for now... So far this issue references 2 bugsnumbers are interpreted as year instead of hours
wrong parsing when supplying am|pm
Fix contribution would be appreciated =) |
Sorry, should I split these into separate issues? It wasn't clear to me how related they were. |
It's fine, I'm working on it but the fix won't land anytime soon ;) |
I wrote htp to parse time clues for It fixes both issues above but it does not support as many format as chrono-english. Once I'm confident |
fix #37, replace chrono-english with htp
This is bad:
It should have the same result as this:
Also, I can't figure out how to delete that spurious date from within rtw, it didn't show up in the summary for the week because it's from 1969:
So I don't know how to get the id number to delete. I had to manually edit the JSON file to get rid of it. (Thanks again for using a standardized "plaintext" file format instead of some weird database, it makes it much easier to fix things when the program goofs.)
Some possible solutions:
The text was updated successfully, but these errors were encountered: