chronic icon indicating copy to clipboard operation
chronic copied to clipboard

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

Open richdrich opened this issue 8 years ago • 7 comments

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

richdrich avatar Nov 24 '16 19:11 richdrich

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

davispuh avatar Nov 24 '16 22:11 davispuh

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

macobo avatar Jan 12 '17 14:01 macobo

@macobo Look at #347 and my comments on Reddit

haven't really gotten time to still finish it.

davispuh avatar Jan 13 '17 17:01 davispuh

@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?

Laykou avatar May 07 '22 06:05 Laykou

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

davispuh avatar May 07 '22 16:05 davispuh

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

Laykou avatar Aug 23 '23 12:08 Laykou

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

davispuh avatar Aug 28 '23 19:08 davispuh