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

Unexpected result when adding a . #293

Open
besi opened this issue Feb 2, 2015 · 1 comment
Open

Unexpected result when adding a . #293

besi opened this issue Feb 2, 2015 · 1 comment
Labels

Comments

@besi
Copy link

besi commented Feb 2, 2015

The German format may look like this:

11. Juli 2015

So to parse I replaced the month names and as I now tried to parse as follows I got an unexpected result:

irb(main):009:0> Chronic.parse('11. july 2014')
=> 2014-07-16    NOT OK

irb(main):008:0> Chronic.parse('11 july 2014')
=> 2014-07-11    OK

So as soon as there is a . after the day, the parsing gets mixed up. Even though this might not be an official format I still would not expect the . to interfere with the parsing.

@davispuh davispuh added the bug label Feb 2, 2015
@davispuh
Copy link
Collaborator

davispuh commented Feb 2, 2015

yeah, it's a bug, will probably be fixed in some next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants