mirror of
https://github.com/araddon/dateparse.git
synced 2024-11-10 11:51:54 +08:00
Added extra test cases
This commit is contained in:
parent
9e5141594f
commit
95c11657d1
@ -318,6 +318,10 @@ var testInputs = []dateTest{
|
||||
// yyyy-mm-dd hh:mm:ss+00:00
|
||||
{in: "2012-08-03 18:31:59+00:00", out: "2012-08-03 18:31:59 +0000 UTC"},
|
||||
{in: "2017-07-19 03:21:51+00:00", out: "2017-07-19 03:21:51 +0000 UTC"},
|
||||
// yyyy:mm:dd hh:mm:ss+00:00
|
||||
{in: "2012:08:03 18:31:59+00:00", out: "2012-08-03 18:31:59 +0000 UTC"},
|
||||
// dd:mm:yyyy hh:mm:ss+00:00
|
||||
{in: "08:03:2012 18:31:59+00:00", out: "2012-08-03 18:31:59 +0000 UTC"},
|
||||
// yyyy-mm-dd hh:mm:ss.000+00:00 PST
|
||||
{in: "2012-08-03 18:31:59.000+00:00 PST", out: "2012-08-03 18:31:59 +0000 UTC", loc: "America/Los_Angeles"},
|
||||
// yyyy-mm-dd hh:mm:ss +00:00 TZ
|
||||
|
Loading…
Reference in New Issue
Block a user