From 25167386ff5f7f8282ac8dd31eb4f3d69817ada2 Mon Sep 17 00:00:00 2001 From: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com> Date: Wed, 2 Nov 2022 14:51:10 +0100 Subject: [PATCH] Update LoopData.h --- src/LoopData.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LoopData.h b/src/LoopData.h index ba09c09..9f878dc 100644 --- a/src/LoopData.h +++ b/src/LoopData.h @@ -62,7 +62,7 @@ public: void updateDate() { time_t now = time(0); struct tm tstruct; - tstruct = *gmtime(&now); + gmtime_s(&now, &tstruct); strftime(date, 32, "%a, %d %b %Y %X GMT", &tstruct); }