Added a test to cover the 4 year date when dealing with dates of the type 28-Feb-2018.

This commit is contained in:
Philippe Horne 2019-06-19 15:53:12 -04:00
parent dd780a39a3
commit 0f77464124

View File

@ -216,6 +216,7 @@ var testInputs = []dateTest{
// dd-mmm-yy // dd-mmm-yy
{in: "28-Feb-02", out: "2002-02-28 00:00:00 +0000 UTC"}, {in: "28-Feb-02", out: "2002-02-28 00:00:00 +0000 UTC"},
{in: "15-Jan-18", out: "2018-01-15 00:00:00 +0000 UTC"}, {in: "15-Jan-18", out: "2018-01-15 00:00:00 +0000 UTC"},
{in: "15-Jan-2017", out: "2017-01-15 00:00:00 +0000 UTC"},
// yyyy-mm // yyyy-mm
{in: "2014-04", out: "2014-04-01 00:00:00 +0000 UTC"}, {in: "2014-04", out: "2014-04-01 00:00:00 +0000 UTC"},
// yyyy-mm-dd hh:mm:ss AM // yyyy-mm-dd hh:mm:ss AM