2
0
mirror of https://github.com/araddon/dateparse.git synced 2026-08-19 19:09:05 +08:00

new date format for 2013-Feb-03

This commit is contained in:
Aaron Raddon
2017-07-26 16:55:21 -07:00
parent 0e522cd409
commit 3e1f751fed
4 changed files with 50 additions and 32 deletions

View File

@@ -232,6 +232,9 @@ func TestParse(t *testing.T) {
ts = MustParse("12 Feb 2006, 19:17:22")
assert.Equal(t, "2006-02-12 19:17:22 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC)))
ts = MustParse("2013-Feb-03")
assert.Equal(t, "2013-02-03 00:00:00 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC)))
//---------------------------------------------
// mm/dd/yyyy ?