mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #6803 from gojimmypi/esp32-example-time
ESP32 examples: update interim set_time() fixed value
This commit is contained in:
@ -58,10 +58,10 @@ static void set_time()
|
|||||||
time_t now;
|
time_t now;
|
||||||
struct tm timeinfo;
|
struct tm timeinfo;
|
||||||
char strftime_buf[64];
|
char strftime_buf[64];
|
||||||
/* please update the time if seeing unknown failure when loading cert. */
|
/* please update the time if seeing unknown failure when loading cert. */
|
||||||
/* this could cause TLS communication failure due to time expiration */
|
/* this could cause TLS communication failure due to time expiration */
|
||||||
/* incleasing 31536000 seconds is close to spend 356 days. */
|
/* increasing 31536000 seconds is close to spanning 356 days. */
|
||||||
utctime.tv_sec = 1645797600; /* dummy time: Fri 25 Feb 2022 02:00:00 2022 */
|
utctime.tv_sec = 1695513105; /* dummy time: Sat Sep 23 17:05:31 PDT 2023 */
|
||||||
utctime.tv_usec = 0;
|
utctime.tv_usec = 0;
|
||||||
tz.tz_minuteswest = 0;
|
tz.tz_minuteswest = 0;
|
||||||
tz.tz_dsttime = 0;
|
tz.tz_dsttime = 0;
|
||||||
|
@ -58,10 +58,10 @@ static void set_time()
|
|||||||
time_t now;
|
time_t now;
|
||||||
struct tm timeinfo;
|
struct tm timeinfo;
|
||||||
char strftime_buf[64];
|
char strftime_buf[64];
|
||||||
/* please update the time if seeing unknown failure when loading cert. */
|
/* please update the time if seeing unknown failure when loading cert. */
|
||||||
/* this could cause TLS communication failure due to time expiration */
|
/* this could cause TLS communication failure due to time expiration */
|
||||||
/* incleasing 31536000 seconds is close to spend 356 days. */
|
/* increasing 31536000 seconds is close to spanning 356 days. */
|
||||||
utctime.tv_sec = 1645797600; /* dummy time: Fri 25 Feb 2022 02:00:00 2022 */
|
utctime.tv_sec = 1695513105; /* dummy time: Sat Sep 23 17:05:31 PDT 2023 */
|
||||||
utctime.tv_usec = 0;
|
utctime.tv_usec = 0;
|
||||||
tz.tz_minuteswest = 0;
|
tz.tz_minuteswest = 0;
|
||||||
tz.tz_dsttime = 0;
|
tz.tz_dsttime = 0;
|
||||||
|
Reference in New Issue
Block a user