]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
fix xml set time without time zone
authorBastian Dehn <hhaalo@arcor.de>
Mon, 20 Apr 2026 13:46:04 +0000 (15:46 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 20 Apr 2026 13:46:04 +0000 (15:46 +0200)
src/xml.c

index d874d3bd23d7f330c142d9c670dc5f167fc00610..5917561c83d1b2c2d535ef1e16a7eaa7223e8d52 100644 (file)
--- 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) {