summaryrefslogtreecommitdiff
path: root/libs/xml.c/src
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-09-27 09:47:26 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-09-27 09:47:26 +0200
commit58edcf619ee9d589dd7b54b8a9cbd4271740c13b (patch)
treefccd23132f96eb3f5da3b530b78ad826f534687f /libs/xml.c/src
parentbd3f2b84742067d0b9049b9f42f2266f94dbb0f9 (diff)
fix shipping info r/w issue. fix date r/w timezone issue.
Diffstat (limited to 'libs/xml.c/src')
-rw-r--r--libs/xml.c/src/xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/xml.c/src/xml.c b/libs/xml.c/src/xml.c
index e88ba93..3601aa6 100644
--- a/libs/xml.c/src/xml.c
+++ b/libs/xml.c/src/xml.c
@@ -1315,5 +1315,8 @@ time_t xml_get_date_x(struct xml_node* root, char* child_name, ...)
tm_info.tm_min = 0;
tm_info.tm_sec = 0;
- return mktime(&tm_info) + 86400; // Hack
+ time_t result = mktime(&tm_info);
+
+ if (result == -1) return 0;
+ else return result - _timezone;
} \ No newline at end of file