summaryrefslogtreecommitdiff
path: root/libs/xml.c/src
diff options
context:
space:
mode:
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