From 58edcf619ee9d589dd7b54b8a9cbd4271740c13b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 27 Sep 2025 09:47:26 +0200 Subject: fix shipping info r/w issue. fix date r/w timezone issue. --- libs/xml.c/src/xml.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/xml.c') 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 -- cgit v1.2.3-70-g09d2