fix(timezone): call right apply function
This commit is contained in:
parent
2dd1e05cf0
commit
fae4fe5a75
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue