fix: set timezone on windows
This commit is contained in:
parent
dd28770bf7
commit
ecb757326f
|
@ -798,7 +798,7 @@ int32_t taosSetSystemTimezone(const char *inTimezoneStr, char *outTimezoneStr, i
|
||||||
memcpy(&winStr[3], pp, ppp - pp);
|
memcpy(&winStr[3], pp, ppp - pp);
|
||||||
indexStr = ppp - pp + 3;
|
indexStr = ppp - pp + 3;
|
||||||
}
|
}
|
||||||
sprintf(&winStr[indexStr], "%c%c%c:%c%c:00", (p[0] == '+' ? '-' : '+'), p[1], p[2], p[3], p[4]);
|
sprintf(&winStr[indexStr], "%c%c%c:%c%c:00", (p[0] == '+' ? '+' : '-'), p[1], p[2], p[3], p[4]);
|
||||||
*tsTimezone = -taosStr2Int32(p, NULL, 10);
|
*tsTimezone = -taosStr2Int32(p, NULL, 10);
|
||||||
} else {
|
} else {
|
||||||
*tsTimezone = 0;
|
*tsTimezone = 0;
|
||||||
|
|
Loading…
Reference in New Issue