summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--input_gadgets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/input_gadgets.c b/input_gadgets.c
index 136cbb9..97351c4 100644
--- a/input_gadgets.c
+++ b/input_gadgets.c
@@ -844,6 +844,8 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len)
zip_discard(za);
return NULL;
}
+ if (text[20]=='2')
+ time_struct.tm_isdst = 1;
xmlFree(text);
warnings[warnings_len].onset = mktime(&time_struct);
memset(&time_struct, 0, sizeof(time_struct));
@@ -862,6 +864,8 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len)
zip_discard(za);
return NULL;
}
+ if (text[20]=='2')
+ time_struct.tm_isdst = 1;
xmlFree(text);
warnings[warnings_len].expires = mktime(&time_struct);
} else