Dec 5 2021 - tzchar to 60 chars for long timezone
tzchar 1278 and 1333 up to 60 chars for long timezonepull/34/head
rodzic
1193ee8007
commit
5ed30d06de
|
@ -1275,7 +1275,7 @@ bool init_wifi()
|
||||||
if (connAttempts++ == 15) break; // try for 15 seconds to get internet, then give up
|
if (connAttempts++ == 15) break; // try for 15 seconds to get internet, then give up
|
||||||
}
|
}
|
||||||
configTime(0, 0, "pool.ntp.org");
|
configTime(0, 0, "pool.ntp.org");
|
||||||
char tzchar[50];
|
char tzchar[60];
|
||||||
//Serial.printf("Str >%s<, Char >%s<\n",TIMEZONE,tzchar);
|
//Serial.printf("Str >%s<, Char >%s<\n",TIMEZONE,tzchar);
|
||||||
TIMEZONE.toCharArray(tzchar, TIMEZONE.length()); // name of your camera for mDNS, Router, and filenames
|
TIMEZONE.toCharArray(tzchar, TIMEZONE.length()); // name of your camera for mDNS, Router, and filenames
|
||||||
setenv("TZ", tzchar, 1); // mountain time zone from #define at top
|
setenv("TZ", tzchar, 1); // mountain time zone from #define at top
|
||||||
|
@ -1330,7 +1330,7 @@ bool init_wifi()
|
||||||
});
|
});
|
||||||
|
|
||||||
configTime(0, 0, "pool.ntp.org");
|
configTime(0, 0, "pool.ntp.org");
|
||||||
char tzchar[40];
|
char tzchar[60];
|
||||||
TIMEZONE.toCharArray(tzchar, TIMEZONE.length()); // name of your camera for mDNS, Router, and filenames
|
TIMEZONE.toCharArray(tzchar, TIMEZONE.length()); // name of your camera for mDNS, Router, and filenames
|
||||||
setenv("TZ", tzchar, 1); // mountain time zone from #define at top
|
setenv("TZ", tzchar, 1); // mountain time zone from #define at top
|
||||||
tzset();
|
tzset();
|
||||||
|
|
Ładowanie…
Reference in New Issue