easier parsing of comma milliseconds

This commit is contained in:
Aaron Raddon
2018-03-10 13:05:55 -08:00
parent 163a0a8ac8
commit 62e766bf9e
2 changed files with 9 additions and 13 deletions

View File

@@ -116,8 +116,8 @@ func TestInLocation(t *testing.T) {
func TestOne(t *testing.T) {
time.Local = time.UTC
var ts time.Time
ts = MustParse("Mon Aug 10 15:44:11 PST-0700 2015")
assert.Equal(t, "2015-08-10 22:44:11 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC)))
ts = MustParse("2014-05-11 08:20:13,787")
assert.Equal(t, "2014-05-11 08:20:13.787 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC)))
}
func TestParse(t *testing.T) {