araddon / dateparse

GoLang Parse many date strings without knowing format in advance.
MIT License
2.03k stars 164 forks source link

Suffixes are not supported in some formats #127

Open krhubert opened 3 years ago

krhubert commented 3 years ago

What did you do?

https://play.golang.org/p/uTKVv1D1zcf

What did you expect to see?

2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>

What did you see instead?

2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
2021-11-17 00:00:00 +0000 UTC <nil>
0001-01-01 00:00:00 +0000 UTC parsing time "17th Nov 2021": month out of range