minor changes
This commit is contained in:
parent
9fc0fa4fee
commit
eea1bad72e
|
@ -46,6 +46,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void taosSetSystemTimezone(const char *inTimezone, char *outTimezone, int8_t *outDaylight) {
|
void taosSetSystemTimezone(const char *inTimezone, char *outTimezone, int8_t *outDaylight) {
|
||||||
|
if (inTimezone == NULL || inTimezone[0] == 0) return;
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
char winStr[TD_LOCALE_LEN * 2];
|
char winStr[TD_LOCALE_LEN * 2];
|
||||||
sprintf(winStr, "TZ=%s", inTimezone);
|
sprintf(winStr, "TZ=%s", inTimezone);
|
||||||
|
|
Loading…
Reference in New Issue