提交 459c1e6c 编写于 作者: G Ganlin Zhao

fix: fix timestamp conversion error due to daylight saving time

上级 70c18d44
...@@ -93,13 +93,13 @@ int32_t taosParseTime(const char* timestr, int64_t* utime, int32_t len, int32_t ...@@ -93,13 +93,13 @@ int32_t taosParseTime(const char* timestr, int64_t* utime, int32_t len, int32_t
if (checkTzPresent(timestr, len)) { if (checkTzPresent(timestr, len)) {
return parseTimeWithTz(timestr, utime, timePrec, 'T'); return parseTimeWithTz(timestr, utime, timePrec, 'T');
} else { } else {
return (*parseLocaltimeFp[day_light])((char*)timestr, len, utime, timePrec, 'T'); return parseLocaltimeDst((char*)timestr, len, utime, timePrec, 'T');
} }
} else { } else {
if (checkTzPresent(timestr, len)) { if (checkTzPresent(timestr, len)) {
return parseTimeWithTz(timestr, utime, timePrec, 0); return parseTimeWithTz(timestr, utime, timePrec, 0);
} else { } else {
return (*parseLocaltimeFp[day_light])((char*)timestr, len, utime, timePrec, 0); return parseLocaltimeDst((char*)timestr, len, utime, timePrec, 0);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册