mirror of
https://github.com/araddon/dateparse.git
synced 2025-04-11 19:30:33 +08:00
Merge 0583fb6cbbce070572a1750ad5821d235736c70c into 6b43995a97dee4b2c7fc0bdff8e124da9f31a57e
This commit is contained in:
commit
25fb8aa26f
@ -417,6 +417,14 @@ var testInputs = []dateTest{
|
||||
{in: "1384216367111", out: "2013-11-12 00:32:47.111 +0000 UTC"},
|
||||
{in: "1384216367111222", out: "2013-11-12 00:32:47.111222 +0000 UTC"},
|
||||
{in: "1384216367111222333", out: "2013-11-12 00:32:47.111222333 +0000 UTC"},
|
||||
|
||||
// Potential bugs
|
||||
{in: "2014.02.13", out: "2014-02-13 00:00:00 +0000 UTC"}, // OK: baseline for comparison
|
||||
{in: "2014-02-13 00:00:00", out: "2014-02-13 00:00:00 +0000 UTC"}, // OK: parsed as expected
|
||||
{in: "2014-02-13 00:00:00 utc", out: "2014-02-13 00:00:00 +0000 UTC"}, // BUG?: Looks like lowercase timezones are not supported (cannot parse "utc" as "MST")
|
||||
{in: "2014.02.13 00:00:00", out: "2014-02-13 00:00:00 +0000 UTC"}, // BUG?: cannot be parsed (error is "month out of range")
|
||||
{in: "2014-02-13t00:00:00.0z", out: "2014-02-13 00:00:00 +0000 UTC"}, // BUG?: cannot be parsed (error is "month out of range")
|
||||
|
||||
}
|
||||
|
||||
func TestParse(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user