From 6f72236ee3506f9155089e93069f58267e01e4f2 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Sat, 11 Jun 2022 17:56:40 +0800 Subject: [PATCH] test: add win32 tmq case test --- tests/system-test/2-query/To_iso8601.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system-test/2-query/To_iso8601.py b/tests/system-test/2-query/To_iso8601.py index 973e1e49eb..da7b7e272f 100644 --- a/tests/system-test/2-query/To_iso8601.py +++ b/tests/system-test/2-query/To_iso8601.py @@ -1,3 +1,4 @@ +import time from time import sleep from util.log import * @@ -16,7 +17,7 @@ class TDTestCase: self.ts = 1640966400000 # 2022-1-1 00:00:00.000 def check_customize_param_ms(self): - time_zone = os.popen('date "+%z"').read().strip() + time_zone = time.strftime('%z') tdSql.execute('create database db1 precision "ms"') tdSql.execute('use db1') tdSql.execute('create table if not exists ntb(ts timestamp, c1 int, c2 timestamp)')