提交 f0481c48 编写于 作者: G Ganlin Zhao

[TD-13970]<feature>: timestamp format shortcut

上级 64877f0f
......@@ -336,7 +336,10 @@ int32_t parseLocaltime(char* timestr, int64_t* time, int32_t timePrec, char deli
}
if (str == NULL) {
return -1;
//if parse failed, try "%Y-%m-%d" format
if (!strptime(timestr, "%Y-%m-%d", &tm)) {
return -1;
}
}
#ifdef _MSC_VER
......@@ -378,7 +381,10 @@ int32_t parseLocaltimeWithDst(char* timestr, int64_t* time, int32_t timePrec, ch
}
if (str == NULL) {
return -1;
//if parse failed, try "%Y-%m-%d" format
if (!strptime(timestr, "%Y-%m-%d", &tm)) {
return -1;
}
}
/* mktime will be affected by TZ, set by using taos_options */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册