change print format

This commit is contained in:
Ganlin Zhao 2023-03-24 11:24:04 +08:00
parent 3bdef853b2
commit 6f119ef4d0
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ char *shellFormatTimestamp(char *buf, int64_t val, int32_t precision) {
struct tm ptm = {0};
if (taosLocalTime(&tt, &ptm) == NULL) {
sprintf(buf, "%s", "NaN");
sprintf(buf, "NaN");
return buf;
}
size_t pos = strftime(buf, 35, "%Y-%m-%d %H:%M:%S", &ptm);