From 83117ae33f02f4144d612d3155babd9d02d3a6f0 Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Sat, 23 Sep 2023 17:16:19 -0700 Subject: [PATCH] ESP32 examples: interim set_time() fixed value --- .../ESP-IDF/examples/wolfssl_client/main/wifi_connect.c | 8 ++++---- .../ESP-IDF/examples/wolfssl_server/main/wifi_connect.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/IDE/Espressif/ESP-IDF/examples/wolfssl_client/main/wifi_connect.c b/IDE/Espressif/ESP-IDF/examples/wolfssl_client/main/wifi_connect.c index c0cc5676c..4910c5be2 100644 --- a/IDE/Espressif/ESP-IDF/examples/wolfssl_client/main/wifi_connect.c +++ b/IDE/Espressif/ESP-IDF/examples/wolfssl_client/main/wifi_connect.c @@ -58,10 +58,10 @@ static void set_time() time_t now; struct tm timeinfo; char strftime_buf[64]; - /* please update the time if seeing unknown failure when loading cert. */ - /* this could cause TLS communication failure due to time expiration */ - /* incleasing 31536000 seconds is close to spend 356 days. */ - utctime.tv_sec = 1645797600; /* dummy time: Fri 25 Feb 2022 02:00:00 2022 */ + /* please update the time if seeing unknown failure when loading cert. */ + /* this could cause TLS communication failure due to time expiration */ + /* increasing 31536000 seconds is close to spanning 356 days. */ + utctime.tv_sec = 1695513105; /* dummy time: Sat Sep 23 17:05:31 PDT 2023 */ utctime.tv_usec = 0; tz.tz_minuteswest = 0; tz.tz_dsttime = 0; diff --git a/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/wifi_connect.c b/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/wifi_connect.c index f2a86553d..8e68e77bd 100644 --- a/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/wifi_connect.c +++ b/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/wifi_connect.c @@ -58,10 +58,10 @@ static void set_time() time_t now; struct tm timeinfo; char strftime_buf[64]; - /* please update the time if seeing unknown failure when loading cert. */ - /* this could cause TLS communication failure due to time expiration */ - /* incleasing 31536000 seconds is close to spend 356 days. */ - utctime.tv_sec = 1645797600; /* dummy time: Fri 25 Feb 2022 02:00:00 2022 */ + /* please update the time if seeing unknown failure when loading cert. */ + /* this could cause TLS communication failure due to time expiration */ + /* increasing 31536000 seconds is close to spanning 356 days. */ + utctime.tv_sec = 1695513105; /* dummy time: Sat Sep 23 17:05:31 PDT 2023 */ utctime.tv_usec = 0; tz.tz_minuteswest = 0; tz.tz_dsttime = 0;