summaryrefslogtreecommitdiff
path: root/input_gadgets.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-03 17:02:28 +0200
committerErich Eckner <git@eckner.net>2020-06-03 17:02:28 +0200
commita03c1fc34ef52845081970c4ebbe5e3b25395702 (patch)
tree3cd94e7f9fb61d3af3cf01c959c845a9685c008d /input_gadgets.c
parentd0bcc0ff75fa7b460bd74c56c99843a83cf373d9 (diff)
downloadanzeige-a03c1fc34ef52845081970c4ebbe5e3b25395702.tar.xz
input_gadgets.c: try to parse zoneinfo (does not work (yet))
Diffstat (limited to 'input_gadgets.c')
-rw-r--r--input_gadgets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input_gadgets.c b/input_gadgets.c
index f4db427..136cbb9 100644
--- a/input_gadgets.c
+++ b/input_gadgets.c
@@ -831,7 +831,7 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len)
zip_discard(za);
return NULL;
}
- if (strptime((char *)text,"%FT%T+",&time_struct) == NULL) {
+ if (strptime((char *)text,"%FT%T%z",&time_struct) == NULL) {
fprintf(stderr, "Failed to parse time '%s'\n",text);
xmlFree(text);
free(chunk.memory);
@@ -849,7 +849,7 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len)
memset(&time_struct, 0, sizeof(time_struct));
text = xml_extract_string(doc, cur_node, "expires");
if (text != NULL) {
- if (strptime((char *)text,"%FT%T+",&time_struct) == NULL) {
+ if (strptime((char *)text,"%FT%T%z",&time_struct) == NULL) {
fprintf(stderr, "Failed to parse time '%s'\n",text);
xmlFree(text);
free(chunk.memory);