From 1b68531e7aea2b6d74c08c303feb6eff3a06dbb0 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Thu, 16 Jun 2016 21:22:43 +0200 Subject: [PATCH] Fix jsontime_test --- jsontime/jsontime_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsontime/jsontime_test.go b/jsontime/jsontime_test.go index 873ae03..c21fd16 100644 --- a/jsontime/jsontime_test.go +++ b/jsontime/jsontime_test.go @@ -25,7 +25,7 @@ func TestMarshalTime(t *testing.T) { json, err := Time{nativeTime}.MarshalJSON() assert.Nil(err) - assert.Equal(`"2012-11-01T22:08:41"`, string(json)) + assert.Equal(`"2012-11-01T22:08:41+0000"`, string(json)) } func TestUnmarshalValidTime(t *testing.T) { @@ -33,7 +33,7 @@ func TestUnmarshalValidTime(t *testing.T) { jsonTime := Time{} // valid time - err := jsonTime.UnmarshalJSON([]byte(`"2012-11-01T22:08:41"`)) + err := jsonTime.UnmarshalJSON([]byte(`"2012-11-01T22:08:41+0000"`)) assert.Nil(err) assert.False(jsonTime.IsZero()) }