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

fix(timezone): taos_options apply new timezone
This commit is contained in:
Shengliang Guan 2022-11-14 18:20:11 +08:00 committed by GitHub
commit fa2e39a5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -271,8 +271,11 @@ static int32_t cfgSetTimezone(SConfigItem *pItem, const char *value, ECfgSrcType
cfgStypeStr(stype), value, terrstr());
return -1;
}
pItem->stype = stype;
// apply new timezone
osSetTimezone(value);
return 0;
}