Skip to content

Commit

Permalink
fix CurrentTimestamp check error for different timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
siddontang committed Sep 6, 2015
1 parent b63205b commit 63ddb9c
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 63ddb9c

Please sign in to comment.