mojombo / chronic

Chronic is a pure Ruby natural language date parser.
http://injekt.github.com/chronic
MIT License
3.24k stars 458 forks source link

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

Open richdrich opened 7 years ago

richdrich commented 7 years ago
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 commented 7 years ago

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

macobo commented 7 years ago

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

davispuh commented 7 years ago

@macobo Look at #347 and my comments on Reddit

haven't really gotten time to still finish it.

Laykou commented 2 years ago

@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 commented 2 years ago

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

Laykou commented 1 year ago

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

davispuh commented 1 year ago

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