From 5ed30d06de02631a210cdb1b0041e85a590e6592 Mon Sep 17 00:00:00 2001 From: jameszah <36938190+jameszah@users.noreply.github.com> Date: Sun, 5 Dec 2021 18:39:22 -0700 Subject: [PATCH] Dec 5 2021 - tzchar to 60 chars for long timezone tzchar 1278 and 1333 up to 60 chars for long timezone --- ESP32-CAM-Video-Recorder-junior-50x-lpmod.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32-CAM-Video-Recorder-junior-50x-lpmod.ino b/ESP32-CAM-Video-Recorder-junior-50x-lpmod.ino index 2737cdc..b9e0940 100644 --- a/ESP32-CAM-Video-Recorder-junior-50x-lpmod.ino +++ b/ESP32-CAM-Video-Recorder-junior-50x-lpmod.ino @@ -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();