Don't convert Unix times to nanoseconds when querying datetime fields. Fixes #430.

This commit is contained in:
deepilla
2017-06-30 13:17:04 -05:00
parent afe454f622
commit 05123859be
2 changed files with 4 additions and 2 deletions

View File

@@ -403,6 +403,7 @@ func TestTimestamp(t *testing.T) {
}{
{"nonsense", time.Time{}},
{"0000-00-00 00:00:00", time.Time{}},
{time.Time{}.Unix(), time.Time{}},
{timestamp1, timestamp1},
{timestamp2.Unix(), timestamp2.Truncate(time.Second)},
{timestamp2.UnixNano() / int64(time.Millisecond), timestamp2.Truncate(time.Millisecond)},