Skip to content

Commit

Permalink
Merge pull request #5 from siddontang/fix-time-test
Browse files Browse the repository at this point in the history
fix CurrentTimestamp check error for different timezones
  • Loading branch information
c4pt0r committed Sep 6, 2015
2 parents b7e5674 + 63ddb9c commit 51bc5b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion expression/expressions/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package expressions

import (
"errors"
"time"

. "github.com/pingcap/check"
"github.com/pingcap/tidb/expression"
Expand Down Expand Up @@ -160,7 +161,7 @@ func (s *testHelperSuite) TestGetTimeValue(c *C) {
Ret interface{}
}{
{"2012-12-12 00:00:00", "2012-12-12 00:00:00"},
{CurrentTimestamp, "1970-01-01 08:20:34"},
{CurrentTimestamp, time.Unix(1234, 0).Format(mysql.TimeFormat)},
{ZeroTimestamp, "0000-00-00 00:00:00"},
{Value{"2012-12-12 00:00:00"}, "2012-12-12 00:00:00"},
{Value{int64(0)}, "0000-00-00 00:00:00"},
Expand Down

0 comments on commit 51bc5b4

Please sign in to comment.