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

Merge branch 'develop' into feature/TD-13970

上级 b3105484
......@@ -337,7 +337,8 @@ int32_t parseLocaltime(char* timestr, int64_t* time, int32_t timePrec, char deli
if (str == NULL) {
//if parse failed, try "%Y-%m-%d" format
if (!strptime(timestr, "%Y-%m-%d", &tm)) {
str = strptime(timestr, "%Y-%m-%d", &tm);
if (str == NULL) {
return -1;
}
}
......@@ -382,7 +383,8 @@ int32_t parseLocaltimeWithDst(char* timestr, int64_t* time, int32_t timePrec, ch
if (str == NULL) {
//if parse failed, try "%Y-%m-%d" format
if (!strptime(timestr, "%Y-%m-%d", &tm)) {
str = strptime(timestr, "%Y-%m-%d", &tm);
if (str == NULL) {
return -1;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册