chronic
chronic copied to clipboard
Dot dates with no leading zero on month (11.2.2016) parse incorrectly
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
Such format currently isn't supported but will be in next version (it's already implemented).
@davispuh Looking forward to the new release, how's it going along?
@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?
You can use my rewrite branch https://github.com/davispuh/chronic/tree/rewrite it should support it.
Is there any plan to officially use this rewrite in the chronic gem?
When it gets completed then it will be merged in master. But no one is working on this.