Dec 5 2021 - tzchar to 60 chars for long timezone

tzchar 1278 and 1333 up to 60 chars for long timezone
pull/34/head
jameszah 2021-12-05 18:39:22 -07:00 zatwierdzone przez GitHub
rodzic 1193ee8007
commit 5ed30d06de
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1275,7 +1275,7 @@ bool init_wifi()
if (connAttempts++ == 15) break; // try for 15 seconds to get internet, then give up
}
configTime(0, 0, "pool.ntp.org");
char tzchar[50];
char tzchar[60];
//Serial.printf("Str >%s<, Char >%s<\n",TIMEZONE,tzchar);
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
@ -1330,7 +1330,7 @@ bool init_wifi()
});
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
setenv("TZ", tzchar, 1); // mountain time zone from #define at top
tzset();