@@ -11,9 +11,8 @@ import (
1111func TestOne (t * testing.T ) {
1212 time .Local = time .UTC
1313 var ts time.Time
14- ts = MustParse ("11-Jun-11 18:09:59" )
15- // "2016-06-29 18:09:59 +0000 UTC"
16- assert .Equal (t , "2011-06-11 18:09:59 +0000 UTC" , fmt .Sprintf ("%v" , ts .In (time .UTC )))
14+ ts = MustParse ("1 May 2013" )
15+ assert .Equal (t , "2013-05-01 00:00:00 +0000 UTC" , fmt .Sprintf ("%v" , ts .In (time .UTC )))
1716}
1817
1918type dateTest struct {
@@ -36,6 +35,10 @@ var testInputs = []dateTest{
3635 {in : "May 8, 2009 5:7:51 PM" , out : "2009-05-08 17:07:51 +0000 UTC" },
3736 {in : "7 oct 70" , out : "1970-10-07 00:00:00 +0000 UTC" },
3837 {in : "7 oct 1970" , out : "1970-10-07 00:00:00 +0000 UTC" },
38+ {in : "7 May 1970" , out : "1970-05-07 00:00:00 +0000 UTC" },
39+ {in : "7 Sep 1970" , out : "1970-09-07 00:00:00 +0000 UTC" },
40+ {in : "7 June 1970" , out : "1970-06-07 00:00:00 +0000 UTC" },
41+ {in : "7 September 1970" , out : "1970-09-07 00:00:00 +0000 UTC" },
3942 // ANSIC = "Mon Jan _2 15:04:05 2006"
4043 {in : "Mon Jan 2 15:04:05 2006" , out : "2006-01-02 15:04:05 +0000 UTC" },
4144 {in : "Thu May 8 17:57:51 2009" , out : "2009-05-08 17:57:51 +0000 UTC" },
0 commit comments