From d7cb7029e0acd328cc7528200c3f6be5c8c6eb7e Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 20 Apr 2026 15:46:04 +0200 Subject: [PATCH] fix xml set time without time zone --- src/xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml.c b/src/xml.c index d874d3b..5917561 100644 --- a/src/xml.c +++ b/src/xml.c @@ -194,7 +194,7 @@ struct tm _init_tm_with_date(const char* date, const uint8_t hour, const uint8_t { struct tm value; const time_t now = time(NULL); - const struct tm* tmp_now = gmtime(&now); + const struct tm* tmp_now = localtime(&now); memcpy(&value, tmp_now, sizeof(struct tm)); if (date != NULL) { -- 2.47.3