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

Dot dates with no leading zero on month (11.2.2016) parse incorrectly #346

Open
richdrich opened this issue Nov 24, 2016 · 7 comments
Open
Labels

Comments

@richdrich
Copy link

Chronic.parse('11.02.2016')
=> 2016-02-11 12:00:00 +1300

[14] pry(main)> Chronic.parse('11.2.2016')
=> 2016-11-25 11:35:36 +1300

[15] pry(main)> DateTime.now
=> Fri, 25 Nov 2016 08:41:52 +1300
@davispuh
Copy link
Collaborator

Such format currently isn't supported but will be in next version (it's already implemented).

@macobo
Copy link

macobo commented Jan 12, 2017

@davispuh Looking forward to the new release, how's it going along?

@davispuh
Copy link
Collaborator

@macobo Look at #347 and my comments on Reddit

haven't really gotten time to still finish it.

@Laykou
Copy link

Laykou commented May 7, 2022

@davispuh Hi, I see this is rather old topic, but still is there a chance to review the possibility of supporting dates with leading zeros, please?

@davispuh
Copy link
Collaborator

davispuh commented May 7, 2022

You can use my rewrite branch https://github.com/davispuh/chronic/tree/rewrite it should support it.

@Laykou
Copy link

Laykou commented Aug 23, 2023

Is there any plan to officially use this rewrite in the chronic gem?

@davispuh
Copy link
Collaborator

When it gets completed then it will be merged in master. But no one is working on this.

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

4 participants