From: Bastian Dehn Date: Mon, 20 Apr 2026 13:46:04 +0000 (+0200) Subject: fix xml set time without time zone X-Git-Tag: 1.3.19^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=d7cb7029e0acd328cc7528200c3f6be5c8c6eb7e;p=feierabend.git fix xml set time without time zone --- 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) {