Skip to content

Commit 0f77464

Browse files
Added a test to cover the 4 year date when dealing with dates of the type 28-Feb-2018.
1 parent dd780a3 commit 0f77464

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

parseany_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ var testInputs = []dateTest{
216216
// dd-mmm-yy
217217
{in: "28-Feb-02", out: "2002-02-28 00:00:00 +0000 UTC"},
218218
{in: "15-Jan-18", out: "2018-01-15 00:00:00 +0000 UTC"},
219+
{in: "15-Jan-2017", out: "2017-01-15 00:00:00 +0000 UTC"},
219220
// yyyy-mm
220221
{in: "2014-04", out: "2014-04-01 00:00:00 +0000 UTC"},
221222
// yyyy-mm-dd hh:mm:ss AM

0 commit comments

Comments
 (0)