From c3b1086066d387f318910fd52a60e1bef75a16fc Mon Sep 17 00:00:00 2001 From: qw4990 Date: Mon, 6 May 2019 19:43:21 +0800 Subject: [PATCH] fix CI --- expression/builtin_time_test.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/expression/builtin_time_test.go b/expression/builtin_time_test.go index 4be5af0ce7b79..399629dd86835 100644 --- a/expression/builtin_time_test.go +++ b/expression/builtin_time_test.go @@ -2333,18 +2333,18 @@ func (s *testEvaluatorSuite) TestConvertTz(c *C) { Success bool expect string }{ - //{"2004-01-01 12:00:00.111", "-00:00", "+12:34", true, "2004-01-02 00:34:00.111"}, - //{"2004-01-01 12:00:00.11", "+00:00", "+12:34", true, "2004-01-02 00:34:00.11"}, - //{"2004-01-01 12:00:00.11111111111", "-00:00", "+12:34", true, "2004-01-02 00:34:00.111111"}, - //{"2004-01-01 12:00:00", "GMT", "MET", true, "2004-01-01 13:00:00"}, - //{"2004-01-01 12:00:00", "-01:00", "-12:00", true, "2004-01-01 01:00:00"}, - //{"2004-01-01 12:00:00", "-00:00", "+13:00", true, "2004-01-02 01:00:00"}, - //{"2004-01-01 12:00:00", "-00:00", "-13:00", true, ""}, - //{"2004-01-01 12:00:00", "-00:00", "-12:88", true, ""}, - //{"2004-01-01 12:00:00", "+10:82", "GMT", false, ""}, - //{"2004-01-01 12:00:00", "+00:00", "GMT", true, ""}, - //{"2004-01-01 12:00:00", "GMT", "+00:00", true, ""}, - //{20040101, "+00:00", "+10:32", true, "2004-01-01 10:32:00"}, + {"2004-01-01 12:00:00.111", "-00:00", "+12:34", true, "2004-01-02 00:34:00.111"}, + {"2004-01-01 12:00:00.11", "+00:00", "+12:34", true, "2004-01-02 00:34:00.11"}, + {"2004-01-01 12:00:00.11111111111", "-00:00", "+12:34", true, "2004-01-02 00:34:00.111111"}, + {"2004-01-01 12:00:00", "GMT", "MET", true, "2004-01-01 13:00:00"}, + {"2004-01-01 12:00:00", "-01:00", "-12:00", true, "2004-01-01 01:00:00"}, + {"2004-01-01 12:00:00", "-00:00", "+13:00", true, "2004-01-02 01:00:00"}, + {"2004-01-01 12:00:00", "-00:00", "-13:00", true, ""}, + {"2004-01-01 12:00:00", "-00:00", "-12:88", true, ""}, + {"2004-01-01 12:00:00", "+10:82", "GMT", false, ""}, + {"2004-01-01 12:00:00", "+00:00", "GMT", true, ""}, + {"2004-01-01 12:00:00", "GMT", "+00:00", true, ""}, + {20040101, "+00:00", "+10:32", true, "2004-01-01 10:32:00"}, {3.14159, "+00:00", "+10:32", true, ""}, } fc := funcs[ast.ConvertTz]