mirror of
https://github.com/araddon/dateparse.git
synced 2024-11-10 11:51:54 +08:00
Added a test to cover the 4 year date when dealing with dates of the type 28-Feb-2018.
This commit is contained in:
parent
dd780a39a3
commit
0f77464124
@ -216,6 +216,7 @@ var testInputs = []dateTest{
|
||||
// dd-mmm-yy
|
||||
{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-2017", out: "2017-01-15 00:00:00 +0000 UTC"},
|
||||
// yyyy-mm
|
||||
{in: "2014-04", out: "2014-04-01 00:00:00 +0000 UTC"},
|
||||
// yyyy-mm-dd hh:mm:ss AM
|
||||
|
Loading…
Reference in New Issue
Block a user