2
0

Merge pull request #193 from waisbrot/utc-time-test

Fix test failure when DB and client are not in the same time zone
This commit is contained in:
Jack Christensen
2016-10-06 08:37:49 -05:00
committed by GitHub
+2 -2
View File
@@ -1095,11 +1095,11 @@ func TestRowDecode(t *testing.T) {
expected []interface{} expected []interface{}
}{ }{
{ {
"select row(1, 'cat', '2015-01-01 08:12:42'::timestamptz)", "select row(1, 'cat', '2015-01-01 08:12:42-00'::timestamptz)",
[]interface{}{ []interface{}{
int32(1), int32(1),
"cat", "cat",
time.Date(2015, 1, 1, 8, 12, 42, 0, time.Local), time.Date(2015, 1, 1, 8, 12, 42, 0, time.UTC).Local(),
}, },
}, },
} }