fix(timezone): call right apply function

This commit is contained in:
Alex Duan 2022-11-14 17:13:44 +08:00
parent 2dd1e05cf0
commit fae4fe5a75
1 changed files with 1 additions and 4 deletions

View File

@ -274,10 +274,7 @@ static int32_t cfgSetTimezone(SConfigItem *pItem, const char *value, ECfgSrcType
pItem->stype = stype; pItem->stype = stype;
// apply new timezone // apply new timezone
char szTimezone[TD_TIMEZONE_LEN] = {0}; osSetTimezone(value);
int8_t dl;
enum TdTimezone tdOffset = TdZeroZone;
taosSetSystemTimezone(value, szTimezone, &dl, &tdOffset);
return 0; return 0;
} }