提交 2dd1e05c 编写于 作者: A Alex Duan

fix(timezone): taos_options apply new timezone

上级 8bfcebb6
......@@ -271,8 +271,14 @@ static int32_t cfgSetTimezone(SConfigItem *pItem, const char *value, ECfgSrcType
cfgStypeStr(stype), value, terrstr());
return -1;
}
pItem->stype = stype;
// apply new timezone
char szTimezone[TD_TIMEZONE_LEN] = {0};
int8_t dl;
enum TdTimezone tdOffset = TdZeroZone;
taosSetSystemTimezone(value, szTimezone, &dl, &tdOffset);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册