提交 6f119ef4 编写于 作者: G Ganlin Zhao

change print format

上级 3bdef853
...@@ -292,7 +292,7 @@ char *shellFormatTimestamp(char *buf, int64_t val, int32_t precision) { ...@@ -292,7 +292,7 @@ char *shellFormatTimestamp(char *buf, int64_t val, int32_t precision) {
struct tm ptm = {0}; struct tm ptm = {0};
if (taosLocalTime(&tt, &ptm) == NULL) { if (taosLocalTime(&tt, &ptm) == NULL) {
sprintf(buf, "%s", "NaN"); sprintf(buf, "NaN");
return buf; return buf;
} }
size_t pos = strftime(buf, 35, "%Y-%m-%d %H:%M:%S", &ptm); size_t pos = strftime(buf, 35, "%Y-%m-%d %H:%M:%S", &ptm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册