未验证 提交 fa2e39a5 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #18110 from taosdata/fix/TD-19935-3.0

fix(timezone): taos_options apply new timezone
...@@ -271,8 +271,11 @@ static int32_t cfgSetTimezone(SConfigItem *pItem, const char *value, ECfgSrcType ...@@ -271,8 +271,11 @@ static int32_t cfgSetTimezone(SConfigItem *pItem, const char *value, ECfgSrcType
cfgStypeStr(stype), value, terrstr()); cfgStypeStr(stype), value, terrstr());
return -1; return -1;
} }
pItem->stype = stype; pItem->stype = stype;
// apply new timezone
osSetTimezone(value);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册